28 #ifndef _FatalErrorException_H
29 #define _FatalErrorException_H
51 OZWEXCEPTION_INVALID_HOMEID = 100,
55 OZWEXCEPTION_INVALID_NODEID
62 std::runtime_error(
OZWException::GetExceptionText(file, line, exitCode, msg)),
87 static std::string GetExceptionText(std::string file,
int line, ExceptionType exitCode, std::string msg)
90 ss << file.substr(file.find_last_of(
"/\\") + 1) <<
":" << line;
93 case OZWEXCEPTION_OPTIONS:
94 ss <<
" - OptionsError (" << exitCode <<
") Msg: " << msg;
96 case OZWEXCEPTION_CONFIG:
97 ss <<
" - ConfigError (" << exitCode <<
") Msg: " << msg;
99 case OZWEXCEPTION_INVALID_HOMEID:
100 ss <<
" - InvalidHomeIDError (" << exitCode <<
") Msg: " << msg;
102 case OZWEXCEPTION_INVALID_VALUEID:
103 ss <<
" - InvalidValueIDError (" << exitCode <<
") Msg: " << msg;
105 case OZWEXCEPTION_CANNOT_CONVERT_VALUEID:
106 ss <<
" - CannotConvertValueIDError (" << exitCode <<
") Msg: " << msg;
108 case OZWEXCEPTION_SECURITY_FAILED:
109 ss <<
" - Security Initialization Failed (" << exitCode <<
") Msg: " << msg;
111 case OZWEXCEPTION_INVALID_NODEID:
112 ss <<
" - InvalidNodeIDError (" << exitCode <<
") Msg: " << msg;
121 ExceptionType m_exitCode;
unsigned int uint32
Definition: Defs.h:91
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
Exception Handling Interface.
Definition: OZWException.h:45
std::string GetFile()
Definition: OZWException.h:79
uint32 GetLine()
Definition: OZWException.h:81
OZWException(std::string file, int line, ExceptionType exitCode, std::string msg)
Definition: OZWException.h:61
ExceptionType
Definition: OZWException.h:48
@ OZWEXCEPTION_OPTIONS
Definition: OZWException.h:49
@ OZWEXCEPTION_INVALID_VALUEID
Definition: OZWException.h:52
@ OZWEXCEPTION_CANNOT_CONVERT_VALUEID
Definition: OZWException.h:53
@ OZWEXCEPTION_SECURITY_FAILED
Definition: OZWException.h:54
@ OZWEXCEPTION_CONFIG
Definition: OZWException.h:50
~OZWException()
Definition: OZWException.h:70
ExceptionType GetType()
Definition: OZWException.h:77
std::string GetMsg()
Definition: OZWException.h:83
Definition: Bitfield.cpp:31