Class for generating exceptions.
More...
#include <common/common.hh>
Inherited by InternalError.
Class for generating exceptions.
§ Exception() [1/2]
§ Exception() [2/2]
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 |
§ ~Exception()
§ GetErrorFile()
std::string GetErrorFile |
( |
| ) |
const |
Return the error function.
- Returns
- The error function name
§ GetErrorStr()
std::string GetErrorStr |
( |
| ) |
const |
Return the error string.
- Returns
- The error string
§ Print()
Print the exception to std out.
§ operator<<
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: