1 #ifndef __EXCEPTION_H__ 2 #define __EXCEPTION_H__ 12 #define THROW_CON_ERR_IF(_condition_, _msg_) \ 14 throw Base::ConstructionError(_msg_); 16 #define THROW_FAIL_NDONE_IF(_condition_, _msg_) \ 18 throw Base::FailedNotDone(_msg_); 25 Exception(
const char* sMessage,
const char* detail);
32 virtual const char* what(
void)
const throw();
33 virtual const char* detail(
void)
const throw();
35 void ReportException(
void)
const;
37 inline void SetMessage(
const char* sMessage);
41 #pragma warning(disable : 4251) 64 virtual const char* what()
const throw();
104 virtual const char* what()
const throw();
122 virtual const char* what()
const throw();
140 virtual const char* what()
const throw();
158 virtual const char* what()
const throw();
176 virtual const char* what()
const throw();
194 virtual const char* what()
const throw();
212 virtual const char* what()
const throw();
230 virtual const char* what()
const throw();
244 #if !defined No_Exception && !defined No_Standard_OutOfRange 245 #define OutOfRange_Raise_if(CONDITION, MESSAGE) \ 247 throw Base::OutOfRange(MESSAGE); 249 #define OutOfRange_Raise_if(CONDITION, MESSAGE) 252 #if !defined No_Exception && !defined No_Standard_ConstructionError 253 #define ConstructionError_Raise_if(CONDITION, MESSAGE) \ 255 throw Base::ConstructionError(MESSAGE); 257 #define ConstructionError_Raise_if(CONDITION, MESSAGE) 260 #if !defined No_Exception && !defined No_gp_VectorWithNullMagnitude 261 #define VectorWithNullMagnitude_Raise_if(CONDITION, MESSAGE) \ 263 throw Base::VectorWithNullMagnitude(MESSAGE); 265 #define VectorWithNullMagnitude_Raise_if(CONDITION, MESSAGE) 268 #if !defined No_Exception 269 #define NotaNumber_if(CONDITION, MESSAGE) \ 271 throw Base::NotaNumber(MESSAGE); 273 #define NotaNumber_if(CONDITION, MESSAGE) 277 #endif // __EXCEPTION_H__ Definition: Exception.h:52
Definition: Exception.h:92
Definition: Exception.h:164
virtual ~MemoryException()
Destruction.
Definition: Exception.h:79
#define BASE_EXPORT
Definition: base_defines.h:12
virtual ~Exception()
Definition: Exception.h:28
virtual ~NotaNumber()
Destruction.
Definition: Exception.h:174
void SetMessage(const char *sMessage)
Definition: Exception.h:83
Definition: Exception.h:233
virtual ~AbortException()
Destruction.
Definition: Exception.h:62
std::string _sErrDetail
Definition: Exception.h:44
virtual ~FailedNotDone()
Destruction.
Definition: Exception.h:120
Definition: Exception.h:218
virtual ~FileException()
Destruction.
Definition: Exception.h:192
virtual ~ItemNotFound()
Destruction.
Definition: Exception.h:138
virtual ~BadArguments()
Destruction.
Definition: Exception.h:228
Definition: Exception.h:128
std::string _sErrMsg
Definition: Exception.h:43
virtual ~VectorWithNullMagnitude()
Destruction.
Definition: Exception.h:210
Definition: AbstractXMLReader.h:8
Definition: Exception.h:71
Definition: Exception.h:22
Definition: Exception.h:146
GuidInUseException()
Definition: Exception.h:236
virtual ~OutOfRange()
Destruction.
Definition: Exception.h:156
Definition: Exception.h:110
Definition: Exception.h:200
virtual ~ConstructionError()
Destruction.
Definition: Exception.h:102
GuidInUseException(const char *sMessage)
Definition: Exception.h:238
Definition: Exception.h:182