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

Classes

struct  ExceptionContext_t
 

Macros

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

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

◆ CATCH

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

Definition at line 63 of file TException.h.

◆ ENDTRY

#define ENDTRY
Value:
} \
gException = R__old; \
}

Definition at line 69 of file TException.h.

◆ RETRY

#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:74
#define SETJMP(buf)
Definition: TException.h:46

Definition at line 49 of file TException.h.

◆ SETJMP

#define SETJMP (   buf)    setjmp(buf)

Definition at line 46 of file TException.h.

◆ TRY

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

Definition at line 56 of file TException.h.

Function Documentation

◆ Throw()

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.

Variable Documentation

◆ gException

Definition at line 74 of file TException.h.