Class for generating exceptions.
More...
#include <common/common.hh>
Class for generating exceptions.
sdf::Exception::Exception |
( |
| ) |
|
sdf::Exception::Exception |
( |
const char * |
_file, |
|
|
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 |
sdf::Exception::Exception |
( |
const Exception & |
_e | ) |
|
Copy constructor.
- Parameters
-
virtual sdf::Exception::~Exception |
( |
| ) |
|
|
virtual |
std::string sdf::Exception::GetErrorFile |
( |
| ) |
const |
Return the error function.
- Returns
- The error function name
std::string sdf::Exception::GetErrorStr |
( |
| ) |
const |
Return the error string.
- Returns
- The error string
void sdf::Exception::Print |
( |
| ) |
const |
Print the exception to std out.
std::ostream& operator<< |
( |
std::ostream & |
_out, |
|
|
const sdf::Exception & |
_err |
|
) |
| |
|
friend |
stream insertion operator for Gazebo Error
- Parameters
-
[in] | _out | the output stream |
[in] | _err | the exception |
The documentation for this class was generated from the following file: