Class for generating exceptions.
More...
#include <common/common.hh>
Class for generating exceptions.
sdf::Exception::Exception |
( |
| ) |
|
sdf::Exception::Exception |
( |
const char * |
_file, |
|
|
int |
_line, |
|
|
std::string |
_msg |
|
) |
| |
Default constructor.
- Parameters
-
[in] | _file | File name |
[in] | _line | Line number where the error occurred |
[in] | _msg | Error message |
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: