RobWorkProject
23.9.11-
|
Standard exception type of RobWork. More...
#include <Exception.hpp>
Inherits exception.
Public Member Functions | |
Exception () | |
This constructor creates an empty Exception and should not be used. | |
Exception (const rw::core::Message &message) | |
Constructor. More... | |
Exception (int id, const rw::core::Message &message) | |
Constructor. More... | |
const rw::core::Message & | getMessage () const |
The message for the user describing the reason for the error. More... | |
int | getId () const |
get id of this exception message More... | |
const char * | what () const throw () |
readable description of this esception More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Exception &exp) |
Format to out the message of the exception exp. More... | |
Standard exception type of RobWork.
All exception thrown within RobWork are of the type Exception.
An exception contains a message (of type Message) for the user and nothing else.
Exception | ( | const rw::core::Message & | message | ) |
Constructor.
message | [in] A message for a user. |
Exception | ( | int | id, |
const rw::core::Message & | message | ||
) |
Constructor.
id | [in] Integer Id to identify the exception |
message | [in] A message for a user. |
|
inline |
get id of this exception message
|
inline |
The message for the user describing the reason for the error.
|
inline |
readable description of this esception
readable description of this esception
|
friend |
Format to out the message of the exception exp.
The format for the text is