libpressio
0.93.0
Loading...
Searching...
No Matches
include
libpressio_ext
cpp
errorable.h
Go to the documentation of this file.
1
#ifndef LIBPRESSIO_ERRORS_H
2
#define LIBPRESSIO_ERRORS_H
3
#include <string>
4
13
class
pressio_errorable
{
14
public
:
15
19
const
char
*
error_msg
()
const
;
23
int
error_code
()
const
;
24
25
protected
:
32
int
set_error
(
int
code, std::string
const
& msg);
33
37
void
clear_error
();
38
39
private
:
40
struct
{
41
int
code;
42
std::string msg;
43
} error = {0,
""
};
44
};
45
46
#endif
/* end of include guard: LIBPRESSIO_ERRORS_H */
pressio_errorable
Definition:
errorable.h:13
pressio_errorable::error_msg
const char * error_msg() const
pressio_errorable::error_code
int error_code() const
pressio_errorable::clear_error
void clear_error()
pressio_errorable::set_error
int set_error(int code, std::string const &msg)
Generated by
1.9.5