21 #ifndef UTILITIESEXCEPTIONS_H
22 #define UTILITIESEXCEPTIONS_H
27 #include "baseexception.h"
34 #pragma warning(disable:4996)
65 strncpy(m_reason, reason, 256);
67 sprintf(m_errorMessage,
"Generic runtime exception, reason: %s", m_reason);
68 m_errorMessage[511] =
'\0';
79 strncpy(m_reason, other.m_reason, 256);
81 strncpy(m_errorMessage, other.m_errorMessage, 512);
82 m_errorMessage[511] =
'\0';
96 BaseException::operator=(other);
97 strncpy(m_reason, other.m_reason, 256);
99 strncpy(m_errorMessage, other.m_errorMessage, 512);
100 m_errorMessage[511] =
'\0';
117 virtual const char *what()
const throw()
119 return m_errorMessage;
127 const char *reason()
const throw()
147 char m_errorMessage[512];
157 inline
void FARSA_UTIL_TEMPLATE throwUserRuntimeError(QString reason)
165 #if defined(_MSC_VER)