6#include "xmsdk_export.h"
7#include "sensorErrors.h"
17 class XMSDK_EXPORT Exception :
public std::exception
20 Exception(
const std::wstring& i_message,
const SensorError i_type = SensorError::UNKNOWN_ERROR);
21 Exception(
const std::string& i_message,
const SensorError i_type = SensorError::UNKNOWN_ERROR);
27 const char*
what() const noexcept override;
36 void CreateMessage(std::
string userMessage);
37 std::
string messageUtf8;
45[[noreturn]] inline
void XM_ERROR(const std::
string msg)
53[[noreturn]]
inline void XM_ERROR(
const std::wstring msg)
Exception base class for the Xavia SDK exceptions.
Definition error.h:18
SensorError GetType() const
Get the type of the exception.
const char * what() const noexcept override
return traditional, human readable version of the exception.