42 #define BES_INTERNAL_ERROR 1 43 #define BES_INTERNAL_FATAL_ERROR 2 44 #define BES_SYNTAX_USER_ERROR 3 45 #define BES_FORBIDDEN_ERROR 4 46 #define BES_NOT_FOUND_ERROR 5 86 virtual void set_message(
const string &msg ) { _msg = msg ; }
126 virtual void dump( ostream &strm )
const ;
129 #endif // BESError_h_
virtual void dump(ostream &strm) const
Displays debug information about this object.
virtual void set_error_type(int type)
Set the return code for this particular error class.
virtual int get_error_type()
Return the return code for this error class.
Base object for bes objects.
virtual string get_file()
get the file name where the exception was thrown
virtual string get_message()
get the error message for this exception
Abstract exception class for the BES with basic string message.
BESError(const string &msg, unsigned int type, const 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 string &msg)
set the error message for this exception
virtual int get_line()
get the line number where the exception was thrown