28 #ifndef _FatalErrorException_H
29 #define _FatalErrorException_H
53 OZWEXCEPTION_INVALID_HOMEID = 100,
56 OZWEXCEPTION_SECURITY_FAILED
63 std::runtime_error(
OZWException::GetExceptionText(file, line, exitCode, msg)),
81 std::string
GetMsg() {
return m_msg; }
85 static std::string GetExceptionText(std::string file,
int line, ExceptionType exitCode, std::string msg)
88 ss << file.substr(file.find_last_of(
"/\\") + 1) <<
":" << line;
90 case OZWEXCEPTION_OPTIONS:
91 ss <<
" - OptionsError (" << exitCode <<
") Msg: " << msg;
93 case OZWEXCEPTION_CONFIG:
94 ss <<
" - ConfigError (" << exitCode <<
") Msg: " << msg;
96 case OZWEXCEPTION_INVALID_HOMEID:
97 ss <<
" - InvalidHomeIDError (" << exitCode <<
") Msg: " << msg;
99 case OZWEXCEPTION_INVALID_VALUEID:
100 ss <<
" - InvalidValueIDError (" << exitCode <<
") Msg: " << msg;
102 case OZWEXCEPTION_CANNOT_CONVERT_VALUEID:
103 ss <<
" - CannotConvertValueIDError (" << exitCode <<
") Msg: " << msg;
105 case OZWEXCEPTION_SECURITY_FAILED:
106 ss <<
" - Security Initilization Failed (" << exitCode <<
") Msg: " << msg;
115 ExceptionType m_exitCode;
123 #endif // _FatalErrorException_H
~OZWException()
Definition: OZWException.h:71
Definition: Bitfield.h:34
Definition: OZWException.h:51
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
#define OPENZWAVE_EXPORT_WARNINGS_ON
Definition: Defs.h:54
OZWException(std::string file, int line, ExceptionType exitCode, std::string msg)
Definition: OZWException.h:62
ExceptionType GetType()
Definition: OZWException.h:78
Definition: OZWException.h:54
uint32 GetLine()
Definition: OZWException.h:80
#define OPENZWAVE_EXPORT_WARNINGS_OFF
Definition: Defs.h:53
unsigned int uint32
Definition: Defs.h:80
Definition: OZWException.h:55
std::string GetFile()
Definition: OZWException.h:79
Exception Handling Interface.
Definition: OZWException.h:47
std::string GetMsg()
Definition: OZWException.h:81
ExceptionType
Definition: OZWException.h:50
Definition: OZWException.h:52