Class for generating exceptions.
More...
#include <common/common.hh>
Class for generating exceptions.
◆ Exception() [1/3]
sdf::Exception::Exception |
( |
| ) |
|
◆ Exception() [2/3]
sdf::Exception::Exception |
( |
const char * | _file, |
|
|
std::int64_t | _line, |
|
|
std::string | _msg ) |
Default constructor.
- Parameters
-
[in] | _file | File name |
[in] | _line | Line number where the error occurred |
[in] | _msg | Error message |
◆ Exception() [3/3]
sdf::Exception::Exception |
( |
const Exception & | _e | ) |
|
◆ ~Exception()
virtual sdf::Exception::~Exception |
( |
| ) |
|
|
virtual |
◆ GetErrorFile()
std::string sdf::Exception::GetErrorFile |
( |
| ) |
const |
Return the error function.
- Returns
- The error function name
◆ GetErrorStr()
std::string sdf::Exception::GetErrorStr |
( |
| ) |
const |
Return the error string.
- Returns
- The error string
Referenced by operator<<.
◆ Print()
void sdf::Exception::Print |
( |
| ) |
const |
Print the exception to std out.
The documentation for this class was generated from the following file: