Exception thrown by this class when something bad occurs.
More...
#include <mc_rtc/Configuration.h>
Exception thrown by this class when something bad occurs.
The exception message is generated when accessed via what() or msg(). It is printed when the exception is deleted and builds a path from the root of the document to the source of the error in order to help the user to find the source of the error. This operation can be expensive. If you do not need the message (e.g. you are attempting various conversions) then you should call silence() to prevent the generation of the message.
◆ Exception() [1/2]
mc_rtc::Configuration::Exception::Exception |
( |
const std::string & |
msg, |
|
|
const Json & |
v |
|
) |
| |
Constructor.
- Parameters
-
msg | Exception message |
v | Json value that was the source of the exception |
◆ Exception() [2/2]
mc_rtc::Configuration::Exception::Exception |
( |
const std::string & |
msg, |
|
|
const Configuration & |
c |
|
) |
| |
|
inline |
◆ ~Exception()
mc_rtc::Configuration::Exception::~Exception |
( |
| ) |
|
|
noexcept |
◆ msg()
const std::string& mc_rtc::Configuration::Exception::msg |
( |
| ) |
const |
|
noexcept |
Returns the error message
◆ silence()
void mc_rtc::Configuration::Exception::silence |
( |
| ) |
const |
|
noexcept |
◆ what()
virtual const char* mc_rtc::Configuration::Exception::what |
( |
| ) |
const |
|
overridevirtualnoexcept |
Returns the error message
The documentation for this struct was generated from the following file: