ChimeraTK-DeviceAccess  03.18.00
ChimeraTK::runtime_error Class Reference

Exception thrown when a runtime error has occured. More...

#include <Exception.h>

+ Inheritance diagram for ChimeraTK::runtime_error:
+ Collaboration diagram for ChimeraTK::runtime_error:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ runtime_error()

ChimeraTK::runtime_error::runtime_error ( std::string  message)
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.

Member Function Documentation

◆ what()

const char * ChimeraTK::runtime_error::what ( ) const
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.

+ Here is the caller graph for this function:

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