ChimeraTK-DeviceAccess  03.18.00
DummyBackendBase.h File Reference
+ Include dependency graph for DummyBackendBase.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ChimeraTK::DummyBackendBase
 Base class for DummyBackends, provides common functionality. More...
 

Namespaces

 ChimeraTK
 

Macros

#define TRY_REGISTER_ACCESS(COMMAND)
 

Macro Definition Documentation

◆ TRY_REGISTER_ACCESS

#define TRY_REGISTER_ACCESS (   COMMAND)
Value:
try { \
COMMAND \
} \
catch(std::out_of_range & outOfRangeException) { \
std::stringstream errorMessage; \
errorMessage << "Invalid address offset " << address << " in bar " << bar << "." \
<< "Caught out_of_range exception: " << outOfRangeException.what(); \
std::cout << errorMessage.str() << std::endl; \
throw ChimeraTK::logic_error(errorMessage.str()); \
}

Definition at line 15 of file DummyBackendBase.h.

ChimeraTK::logic_error
Exception thrown when a logic error has occured.
Definition: Exception.h:51