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

Exception thrown when an observer fails. More...

#include <ObserverError.h>

Public Member Functions

 ObserverError (const std::string &prefix, const std::string &key)
 Create an observer error. More...
 
const std::string & prefix () const noexcept
 Observer prefix in observation/.
 
const std::string & key () const noexcept
 Key that was not found.
 
- Public Member Functions inherited from upkie::cpp::exceptions::UpkieError
 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.
 

Additional Inherited Members

- Protected Attributes inherited from upkie::cpp::exceptions::UpkieError
std::string message_
 Complete error message.
 

Detailed Description

Exception thrown when an observer fails.

Constructor & Destructor Documentation

◆ ObserverError()

upkie::cpp::exceptions::ObserverError::ObserverError ( const std::string &  prefix,
const std::string &  key 
)
inline

Create an observer error.

Parameters
[in]prefixObserver prefix.
[in]keyKey that was not found.

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