bes
Updated for version 3.20.6
|
40 #define BES_INTERNAL_ERROR 1
46 #define BES_INTERNAL_FATAL_ERROR 2
48 #define BES_SYNTAX_USER_ERROR 3
49 #define BES_FORBIDDEN_ERROR 4
50 #define BES_NOT_FOUND_ERROR 5
53 #define BES_TIMEOUT_ERROR 6
65 BESError(): _msg(
"UNDEFINED"), _type(0), _file(
""), _line(0) { }
79 BESError(
const std::string &msg,
unsigned int type,
const std::string &file,
unsigned int line) :
80 _msg(msg), _type(type), _file(file), _line(line)
121 virtual std::string get_verbose_message();
152 virtual void dump(std::ostream &strm)
const;
155 #endif // BESError_h_
virtual int get_bes_error_type()
Return the return code for this error class.
virtual int get_line()
get the line number where the exception was thrown
virtual std::string get_message()
get the error message for this exception
virtual std::string get_file()
get the file name where the exception was thrown
top level BES object to house generic methods
virtual void dump(std::ostream &strm) const
Displays debug information about this object.
Abstract exception class for the BES with basic string message.
virtual void set_bes_error_type(int type)
Set the return code for this particular error class.
BESError(const std::string &msg, unsigned int type, const std::string &file, unsigned int line)
constructor that takes message, type of error, source file the error originated and the line number i...
virtual void set_message(const std::string &msg)
set the error message for this exception