19 class XsException :
public std::exception {
22 XsException(XsException
const& e)
24 , m_description(e.m_description)
38 , m_description(description)
40 if (prefix && (m_code !=
XRV_OK))
43 sprintf(codeString,
"%d: ", (
int) m_code);
46 if (!m_description.empty())
48 rv.append(m_description);
56 explicit XsException(
XsString const& description)
58 , m_description(description)
63 virtual ~XsException() throw()
68 XsException& operator = (XsException
const& e)
71 m_description = e.m_description;
82 inline char const* what()
const throw()
84 return m_description.c_str();
88 inline XsString const& text()
const throw()
96 virtual void raise()
const 107 #endif // __cplusplus guard Operation was performed successfully.
XSTYPES_DLL_API const char * XsResultValue_toString(XsResultValue result)
XsResultValue
Xsens result values.
int BASE_IMPEXP sprintf(char *buf, size_t bufSize, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(3
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compiler...
A generic error occurred.