Class for generating exceptions.
More...
#include <Exception.hh>
|
| 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.
|
|
Class for generating exceptions.
gazebo::common::Exception::Exception |
( |
| ) |
|
gazebo::common::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 gazebo::common::Exception::~Exception |
( |
| ) |
|
|
virtual |
std::string gazebo::common::Exception::GetErrorFile |
( |
| ) |
const |
Return the error function.
- Returns
- The error function name
std::string gazebo::common::Exception::GetErrorStr |
( |
| ) |
const |
Return the error string.
- Returns
- The error string
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: