Open CASCADE Technology
6.9.0
|
#include <Standard_ErrorHandler.hxx>
Public Member Functions | |
Standard_ErrorHandler () | |
Create a ErrorHandler (to be used with try{}catch(){}). It uses the "setjmp" and "longjmp" routines. More... | |
void | Destroy () |
Unlinks and checks if there is a raised exception. More... | |
~Standard_ErrorHandler () | |
void | Unlink () |
Removes handler from the handlers list. More... | |
Standard_Boolean | Catches (const Handle< Standard_Type > &aType) |
Returns "True" if the caught exception has the same type or inherits from "aType". More... | |
Standard_JmpBuf & | Label () |
Returns label for jump. More... | |
Handle< Standard_Failure > | Error () const |
Returns the current Error. More... | |
Static Public Member Functions | |
static Handle< Standard_Failure > | LastCaughtError () |
Returns the caught exception. More... | |
static Standard_Boolean | IsInTryBlock () |
Test if the code is currently running in a try block. More... | |
Standard_ErrorHandler::Standard_ErrorHandler | ( | ) |
Create a ErrorHandler (to be used with try{}catch(){}). It uses the "setjmp" and "longjmp" routines.
|
inline |
Standard_Boolean Standard_ErrorHandler::Catches | ( | const Handle< Standard_Type > & | aType | ) |
Returns "True" if the caught exception has the same type or inherits from "aType".
void Standard_ErrorHandler::Destroy | ( | ) |
Unlinks and checks if there is a raised exception.
Handle< Standard_Failure > Standard_ErrorHandler::Error | ( | ) | const |
Returns the current Error.
|
static |
Test if the code is currently running in a try block.
Standard_JmpBuf& Standard_ErrorHandler::Label | ( | ) |
Returns label for jump.
|
static |
Returns the caught exception.
void Standard_ErrorHandler::Unlink | ( | ) |
Removes handler from the handlers list.