17# ifdef COMPILING_DLL_SimulatedRealityCore
18# define DIMENCOSR_API __declspec(dllexport)
20# define DIMENCOSR_API __declspec(dllimport)
35#pragma warning(disable: 4275)
66 virtual const char*
what()
const throw () {
67 return errorMessage.c_str();
78#pragma warning(suppress: 4251)
Class of exception which indicates that a hardware device was not available for use in the SR system.
Definition: exception.h:86
DeviceNotAvailableException(std::string deviceIdentifier)
Constructs an instance of DeviceNotAvailableException for a specific device identifier.
DeviceNotAvailableException()
Constructs an instance of DeviceNotAvailableException.
Class of exception which indicates a general SR logic error.
Definition: exception.h:40
std::string errorMessage
Error message.
Definition: exception.h:79
virtual ~Exception()
Destructor. Virtual to allow for subclassing.
Definition: exception.h:61
virtual const char * what() const
Returns a pointer to the (constant) error description.
Definition: exception.h:66
Exception(const char *message)
Constructor (C strings).
Definition: exception.h:46
Exception(const std::string &message)
Constructor (C++ STL strings).
Definition: exception.h:54
Class of Exception which indicates that a SR Service was not available to connect with.
Definition: exception.h:101
ServerNotAvailableException()
Constructs an instance of ServerNotAvailableException.
#define DIMENCOSR_API
Definition: exception.h:23
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25