Open CASCADE Technology
6.9.1
|
Macros | |
#define | DEFINE_STANDARD_EXCEPTION(C1, C2) |
Defines an exception class C1 that inherits an exception class C2. More... | |
#define | IMPLEMENT_STANDARD_EXCEPTION(C1) |
Implements an exception class C1 declared with DEFINE_STANDARD_EXCEPTION macro. More... | |
#define DEFINE_STANDARD_EXCEPTION | ( | C1, | |
C2 | |||
) |
Defines an exception class C1 that inherits an exception class C2.
C2 must be Standard_Failure or its ancestor. The macro defines empty constructor, copy constructor and static methods Raise() and NewInstance(). Since Standard_Failure implements class manipulated by handle, DEFINE_STANDARD_RTTI macro is also added to enable RTTI.
When using DEFINE_STANDARD_EXCEPTION in your code make sure you also insert a macro DEFINE_STANDARD_HANDLE(C1,C2) before it.
#define IMPLEMENT_STANDARD_EXCEPTION | ( | C1 | ) |
Implements an exception class C1 declared with DEFINE_STANDARD_EXCEPTION macro.
If you are using IMPLEMENT_STANDARD_EXCEPTION in your code make sure you also call IMPLEMENT_STANDARD_HANDLE(C1,C2) and IMPLEMENT_STANDARD_RTTIEXT(C1,C2).