Class for generating exceptions.
More...
#include <common/common.hh>
|
std::ostream & | operator<< (std::ostream &_out, const sdf::Exception &_err) |
| stream insertion operator for Gazebo Error More...
|
|
Class for generating exceptions.
◆ Exception() [1/4]
sdf::v8::Exception::Exception |
( |
| ) |
|
◆ Exception() [2/4]
sdf::v8::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/4]
sdf::v8::Exception::Exception |
( |
const Exception & |
_e | ) |
|
Copy constructor.
- Parameters
-
◆ Exception() [4/4]
sdf::v8::Exception::Exception |
( |
Exception && |
_e | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
◆ ~Exception()
virtual sdf::v8::Exception::~Exception |
( |
| ) |
|
|
virtual |
◆ GetErrorFile()
std::string sdf::v8::Exception::GetErrorFile |
( |
| ) |
const |
Return the error function.
- Returns
- The error function name
◆ GetErrorStr()
std::string sdf::v8::Exception::GetErrorStr |
( |
| ) |
const |
Return the error string.
- Returns
- The error string
◆ operator=() [1/2]
Assignment operator.
- Parameters
-
[in] | _exception | The exception to set values from. |
- Returns
- *this
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
- Returns
- Reference to this.
◆ Print()
void sdf::v8::Exception::Print |
( |
| ) |
const |
Print the exception to std out.
◆ operator<<
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: