#include <BESError.h>
Inheritance diagram for BESError:
Public Member Functions | |
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 in the source file | |
virtual | ~BESError () |
virtual void | set_message (const string &msg) |
set the error message for this exception | |
virtual string | get_message () |
get the error message for this exception | |
virtual string | get_file () |
get the file name where the exception was thrown | |
virtual int | get_line () |
get the line number where the exception was thrown | |
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. | |
virtual void | dump (ostream &strm) const |
Displays debug information about this object. | |
Protected Member Functions | |
BESError () | |
Protected Attributes | |
string | _msg |
unsigned int | _type |
string | _file |
unsigned int | _line |
BESError::BESError | ( | ) | [inline, protected] |
BESError::BESError | ( | const string & | msg, | |
unsigned int | type, | |||
const string & | file, | |||
unsigned int | line | |||
) | [inline] |
constructor that takes message, type of error, source file the error originated and the line number in the source file
msg | error message | |
type | type of error generated. Default list of error types are defined above as internal error, internal fatal error, syntax/user error, resource forbidden error, resource not found error. |
virtual BESError::~BESError | ( | ) | [inline, virtual] |
void BESError::dump | ( | ostream & | strm | ) | const [virtual] |
Displays debug information about this object.
strm | output stream to use to dump the contents of this object |
Implements BESObj.
Reimplemented in BESForbiddenError, BESInternalError, BESInternalFatalError, BESNotFoundError, and BESSyntaxUserError.
virtual int BESError::get_error_type | ( | ) | [inline, virtual] |
Return the return code for this error class.
Returns the return code for this error class, which could represent the need to terminate or do something specific base on the error
virtual string BESError::get_file | ( | ) | [inline, virtual] |
get the file name where the exception was thrown
virtual int BESError::get_line | ( | ) | [inline, virtual] |
get the line number where the exception was thrown
virtual string BESError::get_message | ( | ) | [inline, virtual] |
get the error message for this exception
virtual void BESError::set_error_type | ( | int | type | ) | [inline, virtual] |
Set the return code for this particular error class.
Sets the return code for this error class, which could represent the need to terminate or do something specific based on the error.
return_code | code used when returning from the error |
virtual void BESError::set_message | ( | const string & | msg | ) | [inline, virtual] |
set the error message for this exception
msg | message string |
string BESError::_file [protected] |
unsigned int BESError::_line [protected] |
string BESError::_msg [protected] |
unsigned int BESError::_type [protected] |