61#define undefined_error 1000
62#define unknown_error 1001
63#define internal_error 1002
64#define no_such_file 1003
65#define no_such_variable 1004
66#define malformed_expr 1005
67#define no_authorization 1006
68#define cannot_read_file 1007
69#define not_implemented 1008
70#define dummy_message 1009
92class Error :
public std::exception
96 std::string _error_message;
100 Error(std::string msg);
110 bool parse(FILE *fp);
111 void print(FILE *out)
const;
112 void print(std::ostream &out)
const;
118 virtual const char* what()
const throw() {
A class for error processing.
void set_error_message(std::string msg="")
void set_error_code(ErrorCode ec=undefined_error)
void print(FILE *out) const
ErrorCode get_error_code() const
std::string get_error_message() const
bool parse(FILE *fp)
Parse an Error object.
bool OK() const
Is the Error object valid?
top level DAP object to house generic methods
int ErrorCode
An enumerated type for common errors.