ROOT  6.06/09
Reference Guide
Classes | Macros | Functions | Variables
TException.h File Reference
#include <setjmp.h>
#include "RConfig.h"
#include "DllImport.h"
+ Include dependency graph for TException.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ExceptionContext_t
 

Macros

#define SETJMP(buf)   setjmp(buf)
 
#define RETRY
 
#define TRY
 
#define CATCH(n)
 
#define ENDTRY
 

Functions

void Throw (int code)
 If an exception context has been set (using the TRY and RETRY macros) jump back to where it was set. More...
 

Variables

R__EXTERN ExceptionContext_tgException
 

Macro Definition Documentation

#define CATCH (   n)
Value:
gException = R__old; \
} else { \
int n = R__code; \
gException = R__old;
R__EXTERN ExceptionContext_t * gException
Definition: TException.h:84
const Int_t n
Definition: legend1.C:16

Definition at line 73 of file TException.h.

Referenced by PyROOT::TMethodHolder::CallSafe(), TRint::HandleTermInput(), and TProofPlayer::Process().

#define ENDTRY
Value:
} \
gException = R__old; \
}
R__EXTERN ExceptionContext_t * gException
Definition: TException.h:84

Definition at line 79 of file TException.h.

Referenced by PyROOT::TMethodHolder::CallSafe(), TRint::HandleTermInput(), TProofPlayer::Process(), TRint::Run(), and TSystem::Run().

#define RETRY
Value:
{ \
static ExceptionContext_t R__curr, *R__old = gException; \
int R__code; \
gException = &R__curr; \
R__code = SETJMP(gException->fBuf); if (R__code) { }; {
R__EXTERN ExceptionContext_t * gException
Definition: TException.h:84
#define SETJMP(buf)
Definition: TException.h:56

Definition at line 59 of file TException.h.

Referenced by TRint::Run(), and TSystem::Run().

#define SETJMP (   buf)    setjmp(buf)

Definition at line 56 of file TException.h.

#define TRY
Value:
{ \
static ExceptionContext_t R__curr, *R__old = gException; \
int R__code; \
gException = &R__curr; \
if ((R__code = SETJMP(gException->fBuf)) == 0) {
if(pyself &&pyself!=Py_None)
R__EXTERN ExceptionContext_t * gException
Definition: TException.h:84
#define SETJMP(buf)
Definition: TException.h:56

Definition at line 66 of file TException.h.

Referenced by PyROOT::TMethodHolder::CallSafe(), TRint::HandleTermInput(), and TProofPlayer::Process().

Function Documentation

void Throw ( int  code)

If an exception context has been set (using the TRY and RETRY macros) jump back to where it was set.

Definition at line 27 of file TException.cxx.

Referenced by PyROOT::TMethodHolder::CallSafe(), TWinNTSystem::DispatchSignals(), TWinNTSystem::HandleConsoleEvent(), TApplication::HandleException(), TRint::HandleTermInput(), RootX11ErrorHandler(), and RootX11IOErrorHandler().

Variable Documentation

Definition at line 84 of file TException.h.

Referenced by TRint::HandleException(), and TApplication::HandleException().