Class for generating exceptions. More...
#include <common/common.hh>
Inherited by InternalError.
Public Member Functions | |
Exception () | |
Constructor. | |
Exception (const char *_file, int _line, std::string _msg) | |
Default constructor. | |
virtual | ~Exception () |
Destructor. | |
std::string | GetErrorFile () const |
Return the error function. | |
std::string | GetErrorStr () const |
Return the error string. | |
void | Print () const |
Print the exception to std out. | |
Class for generating exceptions.
Exception | ( | ) |
Constructor.
Exception | ( | const char * | _file, |
int | _line, | ||
std::string | _msg ) |
Default constructor.
[in] | _file | File name |
[in] | _line | Line number where the error occurred |
[in] | _msg | Error message |
|
virtual |
Destructor.
std::string GetErrorFile | ( | ) | const |
Return the error function.
std::string GetErrorStr | ( | ) | const |
Return the error string.
void Print | ( | ) | const |
Print the exception to std out.