Logo ROOT   6.16/01
Reference Guide
Macros | Typedefs | Functions | Variables
TError.h File Reference
#include "Rtypes.h"
#include <stdarg.h>
Include dependency graph for TError.h:

Macros

#define R__ASSERT(e)
 
#define R__CHECK(e)
 

Typedefs

typedef void(* ErrorHandlerFunc_t) (int level, Bool_t abort, const char *location, const char *msg)
 

Functions

void AbstractMethod (const char *method)
 This function can be used in abstract base classes in case one does not want to make the class a "real" (in C++ sense) ABC. More...
 
void Break (const char *location, const char *msgfmt,...)
 
void DefaultErrorHandler (int level, Bool_t abort, const char *location, const char *msg)
 The default error handler function. More...
 
void Error (const char *location, const char *msgfmt,...)
 
void ErrorHandler (int level, const char *location, const char *fmt, va_list va)
 General error handler function. It calls the user set error handler. More...
 
void Fatal (const char *location, const char *msgfmt,...)
 
ErrorHandlerFunc_t GetErrorHandler ()
 Returns the current error handler function. More...
 
void Info (const char *location, const char *msgfmt,...)
 
void MayNotUse (const char *method)
 This function can be used in classes that should override a certain function, but in the inherited class the function makes no sense. More...
 
void Obsolete (const char *function, const char *asOfVers, const char *removedFromVers)
 Use this function to declare a function obsolete. More...
 
ErrorHandlerFunc_t SetErrorHandler (ErrorHandlerFunc_t newhandler)
 Set an errorhandler function. Returns the old handler. More...
 
void SysError (const char *location, const char *msgfmt,...)
 
void Warning (const char *location, const char *msgfmt,...)
 

Variables

R__EXTERN Int_t gErrorAbortLevel
 
R__EXTERN Int_t gErrorIgnoreLevel
 
R__EXTERN TVirtualMutexgErrorMutex
 
R__EXTERN Bool_t gPrintViaErrorHandler
 
R__EXTERN const char * kAssertMsg
 
const Int_t kBreak = 4000
 
R__EXTERN const char * kCheckMsg
 
const Int_t kError = 3000
 
const Int_t kFatal = 6000
 
const Int_t kInfo = 1000
 
const Int_t kPrint = 0
 
const Int_t kSysError = 5000
 
const Int_t kUnset = -1
 
const Int_t kWarning = 2000
 

Macro Definition Documentation

◆ R__ASSERT

#define R__ASSERT (   e)
Value:
do { \
if (!(e)) ::Fatal("", kAssertMsg, _QUOTE_(e), __LINE__, __FILE__); \
} while (false)
#define _QUOTE_(name)
Definition: RConfig.hxx:447
#define e(i)
Definition: RSha256.hxx:103
R__EXTERN const char * kAssertMsg
Definition: TError.h:93
void Fatal(const char *location, const char *msgfmt,...)

Definition at line 96 of file TError.h.

◆ R__CHECK

#define R__CHECK (   e)
Value:
do { \
if (!(e)) ::Warning("", kCheckMsg, _QUOTE_(e), __LINE__, __FILE__); \
} while (false)
R__EXTERN const char * kCheckMsg
Definition: TError.h:94
void Warning(const char *location, const char *msgfmt,...)

Definition at line 100 of file TError.h.

Typedef Documentation

◆ ErrorHandlerFunc_t

typedef void(* ErrorHandlerFunc_t) (int level, Bool_t abort, const char *location, const char *msg)

Definition at line 46 of file TError.h.

Function Documentation

◆ AbstractMethod()

void AbstractMethod ( const char *  method)

This function can be used in abstract base classes in case one does not want to make the class a "real" (in C++ sense) ABC.

If this function is called it will warn the user that the function should have been overridden.

Definition at line 260 of file TError.cxx.

◆ Break()

void Break ( const char *  location,
const char *  msgfmt,
  ... 
)

◆ DefaultErrorHandler()

void DefaultErrorHandler ( Int_t  level,
Bool_t  abort_bool,
const char *  location,
const char *  msg 
)

The default error handler function.

It prints the message on stderr and if abort is set it aborts the application.

Definition at line 125 of file TError.cxx.

◆ Error()

void Error ( const char *  location,
const char *  msgfmt,
  ... 
)

◆ ErrorHandler()

void ErrorHandler ( int  level,
const char *  location,
const char *  fmt,
va_list  va 
)

General error handler function. It calls the user set error handler.

Definition at line 202 of file TError.cxx.

◆ Fatal()

void Fatal ( const char *  location,
const char *  msgfmt,
  ... 
)

◆ GetErrorHandler()

ErrorHandlerFunc_t GetErrorHandler ( )

Returns the current error handler function.

Definition at line 116 of file TError.cxx.

◆ Info()

void Info ( const char *  location,
const char *  msgfmt,
  ... 
)

◆ MayNotUse()

void MayNotUse ( const char *  method)

This function can be used in classes that should override a certain function, but in the inherited class the function makes no sense.

Definition at line 269 of file TError.cxx.

◆ Obsolete()

void Obsolete ( const char *  function,
const char *  asOfVers,
const char *  removedFromVers 
)

Use this function to declare a function obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 278 of file TError.cxx.

◆ SetErrorHandler()

ErrorHandlerFunc_t SetErrorHandler ( ErrorHandlerFunc_t  newhandler)

Set an errorhandler function. Returns the old handler.

Definition at line 106 of file TError.cxx.

◆ SysError()

void SysError ( const char *  location,
const char *  msgfmt,
  ... 
)

◆ Warning()

void Warning ( const char *  location,
const char *  msgfmt,
  ... 
)

Variable Documentation

◆ gErrorAbortLevel

R__EXTERN Int_t gErrorAbortLevel

Definition at line 106 of file TError.h.

◆ gErrorIgnoreLevel

R__EXTERN Int_t gErrorIgnoreLevel

Definition at line 105 of file TError.h.

◆ gErrorMutex

R__EXTERN TVirtualMutex* gErrorMutex

Definition at line 44 of file TError.h.

◆ gPrintViaErrorHandler

R__EXTERN Bool_t gPrintViaErrorHandler

Definition at line 107 of file TError.h.

◆ kAssertMsg

R__EXTERN const char* kAssertMsg

Definition at line 93 of file TError.h.

◆ kBreak

const Int_t kBreak = 4000

Definition at line 40 of file TError.h.

◆ kCheckMsg

R__EXTERN const char* kCheckMsg

Definition at line 94 of file TError.h.

◆ kError

const Int_t kError = 3000

Definition at line 39 of file TError.h.

◆ kFatal

const Int_t kFatal = 6000

Definition at line 42 of file TError.h.

◆ kInfo

const Int_t kInfo = 1000

Definition at line 37 of file TError.h.

◆ kPrint

const Int_t kPrint = 0

Definition at line 36 of file TError.h.

◆ kSysError

const Int_t kSysError = 5000

Definition at line 41 of file TError.h.

◆ kUnset

const Int_t kUnset = -1

Definition at line 35 of file TError.h.

◆ kWarning

const Int_t kWarning = 2000

Definition at line 38 of file TError.h.