28#ifndef _FatalErrorException_H 
   29#define _FatalErrorException_H 
   53                OZWEXCEPTION_INVALID_HOMEID = 100,
 
   57                OZWEXCEPTION_INVALID_NODEID
 
 
   64                std::runtime_error(
OZWException::GetExceptionText(file, line, exitCode, msg)),
 
 
   82            std::string 
GetMsg() { 
return m_msg; }
 
   86            static std::string GetExceptionText(std::string file, 
int line, ExceptionType exitCode, std::string msg)
 
   89                ss << file.substr(file.find_last_of(
"/\\") + 1) << 
":" << line;
 
   91                    case OZWEXCEPTION_OPTIONS:
 
   92                        ss << 
" - OptionsError (" << exitCode << 
") Msg: " << msg;
 
   94                    case OZWEXCEPTION_CONFIG:
 
   95                        ss << 
" - ConfigError (" << exitCode << 
") Msg: " << msg;
 
   97                    case OZWEXCEPTION_INVALID_HOMEID:
 
   98                        ss << 
" - InvalidHomeIDError (" << exitCode << 
") Msg: " << msg;
 
  100                    case OZWEXCEPTION_INVALID_VALUEID:
 
  101                        ss << 
" - InvalidValueIDError (" << exitCode << 
") Msg: " << msg;
 
  103                    case OZWEXCEPTION_CANNOT_CONVERT_VALUEID:
 
  104                        ss << 
" - CannotConvertValueIDError (" << exitCode << 
") Msg: " << msg;
 
  106                    case OZWEXCEPTION_SECURITY_FAILED:
 
  107                        ss << 
" - Security Initialization Failed (" << exitCode << 
") Msg: " << msg;
 
  109                    case OZWEXCEPTION_INVALID_NODEID:
 
  110                        ss << 
" - InvalidNodeIDError (" << exitCode << 
") Msg: " << msg;
 
  119            ExceptionType   m_exitCode;
 
 
unsigned int uint32
Definition Defs.h:95
#define OPENZWAVE_EXPORT_WARNINGS_ON
Definition Defs.h:53
#define OPENZWAVE_EXPORT
Definition Defs.h:51
#define OPENZWAVE_EXPORT_WARNINGS_OFF
Definition Defs.h:52
Exception Handling Interface.
Definition OZWException.h:48
std::string GetFile()
Definition OZWException.h:80
uint32 GetLine()
Definition OZWException.h:81
OZWException(std::string file, int line, ExceptionType exitCode, std::string msg)
Definition OZWException.h:63
ExceptionType
Definition OZWException.h:50
@ OZWEXCEPTION_OPTIONS
Definition OZWException.h:51
@ OZWEXCEPTION_INVALID_VALUEID
Definition OZWException.h:54
@ OZWEXCEPTION_CANNOT_CONVERT_VALUEID
Definition OZWException.h:55
@ OZWEXCEPTION_SECURITY_FAILED
Definition OZWException.h:56
@ OZWEXCEPTION_CONFIG
Definition OZWException.h:52
~OZWException()
Definition OZWException.h:72
ExceptionType GetType()
Definition OZWException.h:79
std::string GetMsg()
Definition OZWException.h:82