Base class for Upkie-related exceptions.
More...
#include <UpkieError.h>
|
| UpkieError (const std::string &message) |
| Create a new error. More...
|
|
| UpkieError (const UpkieError &other, const std::string &extra_message) |
| Copy an existing error, adding to the error message. More...
|
|
const char * | what () const noexcept override |
| Error message.
|
|
|
std::string | message_ |
| Complete error message.
|
|
Base class for Upkie-related exceptions.
◆ UpkieError() [1/2]
upkie::cpp::exceptions::UpkieError::UpkieError |
( |
const std::string & |
message | ) |
|
|
inlineexplicit |
Create a new error.
- Parameters
-
[in] | message | Error message. |
◆ UpkieError() [2/2]
upkie::cpp::exceptions::UpkieError::UpkieError |
( |
const UpkieError & |
other, |
|
|
const std::string & |
extra_message |
|
) |
| |
|
inline |
Copy an existing error, adding to the error message.
- Parameters
-
[in] | other | Existing error. |
[in] | extra_message | Additional error message. |
The documentation for this class was generated from the following file:
- upkie/cpp/exceptions/UpkieError.h