bes Updated for version 3.20.13
|
Base exception class for the BES with basic string message. More...
#include <BESError.h>
Public Member Functions | |
BESError (const BESError &src) noexcept | |
BESError (std::string msg, unsigned int type, std::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 | |
void | dump (std::ostream &strm) const override |
Displays debug information about this object. | |
unsigned int | get_bes_error_type () const |
Return the return code for this error class. | |
std::string | get_file () const |
get the file name where the exception was thrown | |
unsigned int | get_line () const |
get the line number where the exception was thrown | |
std::string | get_message () const |
get the error message for this exception | |
virtual std::string | get_verbose_message () const |
BESError & | operator= (const BESError &rhs)=delete |
void | set_bes_error_type (unsigned int type) |
Set the return code for this particular error class. | |
void | set_message (const std::string &msg) |
set the error message for this exception | |
const char * | what () const noexcept override |
Return a brief message about the exception. | |
Base exception class for the BES with basic string message.
Definition at line 59 of file BESError.h.
|
inline |
constructor that takes message, type of error, source file the error originated and the line number in the source file
msg | error message. This is the information returned by what(). |
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. |
file | the filename in which this error object was created |
line | the line number within the file in which this error object was created |
Definition at line 80 of file BESError.h.
|
inlinenoexcept |
Definition at line 88 of file BESError.h.
|
overridevirtual |
Displays debug information about this object.
dumps information about this object
strm | output stream to use to dump the contents of this object |
Displays the pointer value of this instance along with the exception message, the file from which the exception was generated, and the line number in that file.
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Reimplemented in BESForbiddenError, BESInternalError, BESInternalFatalError, BESNotFoundError, BESSyntaxUserError, BESTimeoutError, and cmr::CmrError.
Definition at line 59 of file BESError.cc.
|
inline |
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
Definition at line 157 of file BESError.h.
|
inline |
get the file name where the exception was thrown
Definition at line 120 of file BESError.h.
|
inline |
get the line number where the exception was thrown
Definition at line 129 of file BESError.h.
|
inline |
get the error message for this exception
Definition at line 111 of file BESError.h.
|
virtual |
Definition at line 43 of file BESError.cc.
|
inline |
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.
type | the type of error this error object represents. Can be one of BES_INTERNAL_ERROR, BES_INTERNAL_FATAL_ERROR, BES_SYNTAX_USER_ERROR, BES_FORBIDDEN_ERROR, BES_NOT_FOUND_ERROR |
Definition at line 146 of file BESError.h.
|
inline |
set the error message for this exception
msg | message string |
Definition at line 102 of file BESError.h.
|
inlineoverridenoexcept |
Return a brief message about the exception.
Definition at line 168 of file BESError.h.