Go to the documentation of this file.
19 #define THROW(exception) \
22 myexcp.setDebugInformation(__FILE__, __LINE__, __FUNCSIG__); \
25 #define THROWM(exception, message) \
27 exception myexcp(message); \
28 myexcp.setDebugInformation(__FILE__, __LINE__, __FUNCSIG__); \
31 #define THROWMF_FILEEXCEPTION(message, filenameorfileinfo) \
33 FileException myexcp(message, filenameorfileinfo); \
34 myexcp.setDebugInformation(__FILE__, __LINE__, __FUNCSIG__); \
38 #define THROWT(exception) \
41 myexcp.setDebugInformation(__FILE__, __LINE__, __FUNCSIG__); \
42 myexcp.setTranslatable(true); \
45 #define THROWMT(exception, message) \
47 exception myexcp(message); \
48 myexcp.setDebugInformation(__FILE__, __LINE__, __FUNCSIG__); \
49 myexcp.setTranslatable(true); \
52 #define THROWMFT_FILEEXCEPTION(message, filenameorfileinfo) \
54 FileException myexcp(message, filenameorfileinfo); \
55 myexcp.setDebugInformation(__FILE__, __LINE__, __FUNCSIG__); \
56 myexcp.setTranslatable(true); \
60 #elif defined(__GNUC__)
62 #define THROW(exception) \
65 myexcp.setDebugInformation(__FILE__, __LINE__, __PRETTY_FUNCTION__); \
68 #define THROWM(exception, message) \
70 exception myexcp(message); \
71 myexcp.setDebugInformation(__FILE__, __LINE__, __PRETTY_FUNCTION__); \
74 #define THROWMF_FILEEXCEPTION(message, filenameorfileinfo) \
76 FileException myexcp(message, filenameorfileinfo); \
77 myexcp.setDebugInformation(__FILE__, __LINE__, __PRETTY_FUNCTION__); \
81 #define THROWT(exception) \
84 myexcp.setDebugInformation(__FILE__, __LINE__, __PRETTY_FUNCTION__); \
85 myexcp.setTranslatable(true); \
88 #define THROWMT(exception, message) \
90 exception myexcp(message); \
91 myexcp.setDebugInformation(__FILE__, __LINE__, __PRETTY_FUNCTION__); \
92 myexcp.setTranslatable(true); \
95 #define THROWMFT_FILEEXCEPTION(message, filenameorfileinfo) \
97 FileException myexcp(message, filenameorfileinfo); \
98 myexcp.setDebugInformation(__FILE__, __LINE__, __PRETTY_FUNCTION__); \
99 myexcp.setTranslatable(true); \
105 #define THROW(exception) \
108 myexcp.setDebugInformation(__FILE__, __LINE__, __func__); \
111 #define THROWM(exception, message) \
113 exception myexcp(message); \
114 myexcp.setDebugInformation(__FILE__, __LINE__, __func__); \
117 #define THROWMF_FILEEXCEPTION(message, filenameorfileinfo) \
119 FileException myexcp(message, filenameorfileinfo); \
120 myexcp.setDebugInformation(__FILE__, __LINE__, __func__); \
124 #define THROWT(exception) \
127 myexcp.setDebugInformation(__FILE__, __LINE__, __func__); \
128 myexcp.setTranslatable(true); \
131 #define THROWMT(exception, message) \
133 exception myexcp(message); \
134 myexcp.setDebugInformation(__FILE__, __LINE__, __func__); \
135 myexcp.setTranslatable(true); \
138 #define THROWMFT_FILEEXCEPTION(message, filenameorfileinfo) \
140 FileException myexcp(message, filenameorfileinfo); \
141 myexcp.setDebugInformation(__FILE__, __LINE__, __func__); \
142 myexcp.setTranslatable(true); \
149 #define FC_THROWM(_exception, _msg) \
152 std::stringstream ss; \
154 THROWM(_exception, ss.str().c_str()); \
157 #define THROW_CON_ERR_IF(_condition_, _msg_) \
159 throw Base::ConstructionError(_msg_);
161 #define THROW_FAIL_NDONE_IF(_condition_, _msg_) \
163 throw Base::FailedNotDone(_msg_);
177 virtual const char*
what(
void)
const throw();
178 virtual const char*
detail(
void)
const throw();
182 inline void SetMessage(
const char* sMessage);
194 inline void setReported(
bool reported) { _isReported = reported; }
198 #pragma warning(disable : 4251)
202 std::string _file{
"" };
204 std::string _function{
"" };
205 bool _isTranslatable{
false };
206 mutable bool _isReported{
false };
226 virtual const char*
what()
const throw();
266 virtual const char*
what()
const throw();
284 virtual const char*
what()
const throw();
302 virtual const char*
what()
const throw();
320 virtual const char*
what()
const throw();
338 virtual const char*
what()
const throw();
356 virtual const char*
what()
const throw();
374 virtual const char*
what()
const throw();
392 virtual const char*
what()
const throw();
475 #if !defined No_Exception && !defined No_Standard_OutOfRange
476 #define OutOfRange_Raise_if(CONDITION, MESSAGE) \
478 throw Base::OutOfRange(MESSAGE);
480 #define OutOfRange_Raise_if(CONDITION, MESSAGE)
483 #if !defined No_Exception && !defined No_Standard_ConstructionError
484 #define ConstructionError_Raise_if(CONDITION, MESSAGE) \
486 throw Base::ConstructionError(MESSAGE);
488 #define ConstructionError_Raise_if(CONDITION, MESSAGE)
491 #if !defined No_Exception && !defined No_gp_VectorWithNullMagnitude
492 #define VectorWithNullMagnitude_Raise_if(CONDITION, MESSAGE) \
494 throw Base::VectorWithNullMagnitude(MESSAGE);
496 #define VectorWithNullMagnitude_Raise_if(CONDITION, MESSAGE)
499 #if !defined No_Exception
500 #define NotaNumber_if(CONDITION, MESSAGE) \
502 throw Base::NotaNumber(MESSAGE);
504 #define NotaNumber_if(CONDITION, MESSAGE)
FailedNotDone(const FailedNotDone &inst)
Construction.
virtual const char * what() const
Description of the exception.
OutOfRange(const OutOfRange &inst)
Construction.
Definition: Exception.h:327
virtual ~VectorWithNullMagnitude()
Destruction.
Definition: Exception.h:372
Definition: Exception.h:396
virtual ~DivisionByZeroError()
Destruction.
Definition: Exception.h:470
TypeError(const char *sMessage)
Definition: Exception.h:463
virtual ~ItemNotFound()
Destruction.
Definition: Exception.h:300
virtual const char * what() const
Description of the exception.
virtual const char * what() const
Description of the exception.
Definition: Exception.h:291
virtual const char * what() const
Description of the exception.
Definition: Exception.h:309
MemoryException()
Construction.
NotImplementedError(const char *sMessage)
Exception(const char *sMessage, const char *detail)
std::string getFile() const
NotaNumber()
Construction.
virtual const char * what() const
Description of the exception.
NotImplementedError()
Construction.
BadArguments(const char *sMessage)
Construction.
virtual ~FileException()
Destruction.
Definition: Exception.h:354
FileException()
Construction.
DivisionByZeroError()
Construction.
void SetMessage(const char *sMessage)
Definition: Exception.h:245
bool getTranslatable() const
virtual const char * what() const
Description of the exception.
Definition: Exception.h:234
virtual ~TypeError()
Destruction.
Definition: Exception.h:447
virtual ~OutOfRange()
Destruction.
Definition: Exception.h:318
Definition: Exception.h:363
virtual ~Exception()
Definition: Exception.h:173
virtual ~ConstructionError()
Destruction.
Definition: Exception.h:264
VectorWithNullMagnitude()
Construction.
Definition: Exception.h:406
Definition: Exception.h:429
void ReportException(void) const
ValueError(const std::string &sMessage)
FileException(const FileException &inst)
Construction.
OutOfRange()
Construction.
ItemNotFound(const char *sMessage)
Construction.
Definition: Exception.h:418
virtual const char * what() const
Description of the exception.
Definition: Exception.h:168
virtual ~BadArguments()
Destruction.
Definition: Exception.h:390
BadArguments(const BadArguments &inst)
Construction.
Definition: Exception.h:255
ConstructionError()
Construction.
Exception & operator=(const Exception &inst)
DivisionByZeroError(const char *sMessage)
virtual const char * what(void) const
Definition: Exception.h:273
void setTranslatable(bool translatable)
std::string _sErrDetail
Definition: Exception.h:201
ValueError(const char *sMessage)
RuntimeError(const char *sMessage)
FailedNotDone()
Construction.
ItemNotFound()
Construction.
CADKernelError(const char *sMessage)
bool getReported() const
Definition: Exception.h:188
ConstructionError(const ConstructionError &inst)
Construction.
RuntimeError(const std::string &sMessage)
virtual ~MemoryException()
Destruction.
Definition: Exception.h:241
DivisionByZeroError(const std::string &sMessage)
ConstructionError(const char *sMessage)
Construction.
virtual const char * what() const
Description of the exception.
Exception(const Exception &inst)
std::string getFunction() const
AbortException()
Construction.
virtual ~RuntimeError()
Destruction.
Definition: Exception.h:413
BadArguments()
Construction.
virtual ~ValueError()
Destruction.
Definition: Exception.h:425
MemoryException(const MemoryException &inst)
Construction.
RuntimeError()
Construction.
virtual ~AbortException()
Destruction.
Definition: Exception.h:224
void setDebugInformation(const std::string &file, const int line, const std::string &function)
virtual ~FailedNotDone()
Destruction.
Definition: Exception.h:282
FailedNotDone(const char *sMessage)
Construction.
CADKernelError(const std::string &sMessage)
OutOfRange(const char *sMessage)
Construction.
AbortException(const AbortException &inst)
Construction.
Definition: Exception.h:381
FileException(const char *sMessage)
Construction.
VectorWithNullMagnitude(const char *sMessage)
Construction.
Definition: Exception.h:345
VectorWithNullMagnitude(const VectorWithNullMagnitude &inst)
Construction.
Definition: Exception.h:451
CADKernelError()
Construction.
virtual ~CADKernelError()
Destruction.
Definition: Exception.h:436
ItemNotFound(const ItemNotFound &inst)
Construction.
virtual ~NotaNumber()
Destruction.
Definition: Exception.h:336
virtual ~NotImplementedError()
Destruction.
Definition: Exception.h:458
Definition: Exception.h:215
ValueError()
Construction.
GuidInUseException()
Definition: Exception.h:398
AbortException(const char *sMessage)
Construction.
GuidInUseException(const char *sMessage)
Definition: Exception.h:400
NotImplementedError(const std::string &sMessage)
Definition: Exception.h:440
NotaNumber(const NotaNumber &inst)
Construction.
TypeError(const std::string &sMessage)
Definition: AbstractXMLReader.h:5
void setReported(bool reported)
Definition: Exception.h:194
std::string _sErrMsg
Definition: Exception.h:200
virtual const char * detail(void) const
NotaNumber(const char *sMessage)
Construction.
virtual const char * what() const
Description of the exception.