upkie 6.1.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches
upkie::cpp::exceptions::UpkieError Class Reference

Base class for Upkie-related exceptions. More...

#include <UpkieError.h>

Public Member Functions

 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.
 

Protected Attributes

std::string message_
 Complete error message.
 

Detailed Description

Base class for Upkie-related exceptions.

Constructor & Destructor Documentation

◆ UpkieError() [1/2]

upkie::cpp::exceptions::UpkieError::UpkieError ( const std::string &  message)
inlineexplicit

Create a new error.

Parameters
[in]messageError 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]otherExisting error.
[in]extra_messageAdditional error message.

The documentation for this class was generated from the following file: