ChimeraTK-DeviceAccess
03.18.00
|
Exception thrown when a runtime error has occured. More...
#include <Exception.h>
Public Member Functions | |
runtime_error (std::string message) noexcept | |
Constructor. More... | |
const char * | what () const noexcept override |
Return the message describing what exactly went wrong. More... | |
Exception thrown when a runtime error has occured.
Runtime errors are e.g. communication errors or hardware failures which can occur at any time. Those errors are therefore not detectable by other means. Typically it is possible to recover from a runtime_error (after the root cause of the error has been resolved) e.g. simply by retrying the operation (potentially after reopening the device, if applicable).
Definition at line 18 of file Exception.h.
|
explicitnoexcept |
Constructor.
The passed message is returned by a call to what() and should describe what exactly went wront.
Definition at line 12 of file Exception.cpp.
|
overridenoexcept |
Return the message describing what exactly went wrong.
The returned message is only descriptive and only meant for display. Program logic must never be based on the content of this string.
Definition at line 14 of file Exception.cpp.