22 #ifndef WREPORT_ERROR_H
23 #define WREPORT_ERROR_H
78 #define WREPORT_THROWF_ATTRS(a, b) __attribute__ ((noreturn, format(printf, a, b)))
81 struct error :
public std::exception
91 virtual const char*
what()
const throw () = 0;
108 virtual const char*
what()
const throw () {
return msg.c_str(); }
128 virtual const char*
what()
const throw () {
return msg.c_str(); }
151 virtual const char*
what()
const throw () {
return msg; }
169 virtual const char*
what()
const throw () {
return msg.c_str(); }
186 virtual const char*
what()
const throw () {
return msg.c_str(); }
218 virtual const char*
what()
const throw () {
return msg.c_str(); }
235 virtual const char*
what()
const throw () {
return msg.c_str(); }
256 error_parse(
const char* file,
int line,
const std::string& msg);
261 virtual const char*
what()
const throw () {
return msg.c_str(); }
286 virtual const char*
what()
const throw () {
return msg.c_str(); }
303 virtual const char*
what()
const throw () {
return msg.c_str(); }
320 virtual const char*
what()
const throw () {
return msg.c_str(); }
virtual const char * what() const
Error message.
Definition: error.h:108
Base class for DB-All.e exceptions.
Definition: error.h:81
ErrorCode code() const
Exception-specific error code.
Definition: error.h:106
std::string msg
error message returned by what()
Definition: error.h:270
Item not found.
Definition: error.h:47
Consistency check failed.
Definition: error.h:61
ErrorCode code() const
Exception-specific error code.
Definition: error.h:233
Parse error.
Definition: error.h:63
ErrorCode code() const
Exception-specific error code.
Definition: error.h:318
Cannot allocate memory.
Definition: error.h:51
Reports that memory allocation has failed.
Definition: error.h:135
Report an error while handling regular expressions.
Definition: error.h:268
Report an error when parsing informations.
Definition: error.h:242
std::string msg
error message returned by what()
Definition: error.h:161
Report an error when a consistency check failed.
Definition: error.h:225
error_parse(const std::string &msg)
Definition: error.h:247
Reports that a feature is still not implemented.
Definition: error.h:293
No error.
Definition: error.h:45
ErrorCode code() const
Exception-specific error code.
Definition: error.h:301
ErrorCode code() const
Exception-specific error code.
Definition: error.h:148
For functions working with handles, reports a problem with handling handles, such as impossibility to...
Definition: error.h:159
std::string msg
error message returned by what()
Definition: error.h:120
error_unimplemented(const std::string &msg)
Definition: error.h:298
For functions handling data with multiple types, reports a mismatch between the type requested and th...
Definition: error.h:118
Handle management error.
Definition: error.h:55
error_domain(const std::string &msg)
Definition: error.h:315
Buffer is too short to fit data.
Definition: error.h:57
static void throwf(const char *fmt,...) WREPORT_THROWF_ATTRS(1
Throw the exception, building the message printf-style.
Regular expression error.
Definition: error.h:67
static const char * strerror(ErrorCode code)
String description for an error code.
error_handles(const std::string &msg)
Definition: error.h:164
Report that a parameter is outside the acceptable domain.
Definition: error.h:310
virtual const char * what() const
Error message.
Definition: error.h:128
Reports that a search-like function could not find what was requested.
Definition: error.h:98
ErrorCode code() const
Exception-specific error code.
Definition: error.h:259
Error reported by the system.
Definition: error.h:59
std::string msg
error message returned by what()
Definition: error.h:227
const char * msg
error message returned by what()
Definition: error.h:137
error_alloc(const char *msg)
Definition: error.h:145
Wrong variable type.
Definition: error.h:49
ErrorCode code() const
Exception-specific error code.
Definition: error.h:216
ErrorCode code() const
Exception-specific error code.
Definition: error.h:167
Feature not implemented.
Definition: error.h:69
std::string msg
error message returned by what()
Definition: error.h:295
ODBC error.
Definition: error.h:53
error_notfound(const std::string &msg)
Definition: error.h:103
virtual const char * what() const
Error message.
Definition: error.h:235
error_type(const std::string &msg)
Definition: error.h:123
std::string msg
error message returned by what()
Definition: error.h:198
Report a system error message.
Definition: error.h:196
virtual const char * what() const
Error message.
Definition: error.h:303
Value outside acceptable domain.
Definition: error.h:71
#define WREPORT_THROWF_ATTRS(a, b)
Tell the compiler that a function always throws and expects printf-style arguments.
Definition: error.h:78
error_consistency(const std::string &msg)
Definition: error.h:230
Write error.
Definition: error.h:65
std::string msg
error message returned by what()
Definition: error.h:312
virtual const char * what() const =0
Error message.
ErrorCode
C-style error codes used by exceptions.
Definition: error.h:43
virtual const char * what() const
Throw the exception, building the message printf-style.
Definition: error.h:151
ErrorCode code() const
Exception-specific error code.
Definition: error.h:126
ErrorCode code() const
Exception-specific error code.
Definition: error.h:284
virtual const char * what() const
Error message.
Definition: error.h:169
virtual ErrorCode code() const =0
Exception-specific error code.
std::string msg
error message returned by what()
Definition: error.h:244
virtual const char * what() const
Error message.
Definition: error.h:261
virtual const char * what() const
Error message.
Definition: error.h:320
std::string msg
error message returned by what()
Definition: error.h:100
virtual const char * what() const
Error message.
Definition: error.h:286
virtual const char * what() const
Error message.
Definition: error.h:218