Logo ROOT   6.11/03
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

#define R__ASSERT (   e)
Value:
do { \
if (!(e)) ::Fatal("", kAssertMsg, _QUOTE_(e), __LINE__, __FILE__); \
} while (false)
void Fatal(const char *location, const char *msgfmt,...)
R__EXTERN const char * kAssertMsg
Definition: TError.h:93
#define _QUOTE_(name)
Definition: RConfig.h:445
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630

Definition at line 96 of file TError.h.

#define R__CHECK (   e)
Value:
do { \
if (!(e)) ::Warning("", kCheckMsg, _QUOTE_(e), __LINE__, __FILE__); \
} while (false)
#define _QUOTE_(name)
Definition: RConfig.h:445
R__EXTERN const char * kCheckMsg
Definition: TError.h:94
void Warning(const char *location, const char *msgfmt,...)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630

Definition at line 100 of file TError.h.

Typedef Documentation

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

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.

void Break ( const char *  location,
const char *  msgfmt,
  ... 
)
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.

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.

Definition at line 202 of file TError.cxx.

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

Returns the current error handler function.

Definition at line 116 of file TError.cxx.

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.

Definition at line 269 of file TError.cxx.

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.

ErrorHandlerFunc_t SetErrorHandler ( ErrorHandlerFunc_t  newhandler)

Set an errorhandler function. Returns the old handler.

Definition at line 106 of file TError.cxx.

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

Variable Documentation

R__EXTERN Int_t gErrorAbortLevel

Definition at line 106 of file TError.h.

R__EXTERN Int_t gErrorIgnoreLevel

Definition at line 105 of file TError.h.

R__EXTERN TVirtualMutex* gErrorMutex

Definition at line 44 of file TError.h.

R__EXTERN Bool_t gPrintViaErrorHandler

Definition at line 107 of file TError.h.

R__EXTERN const char* kAssertMsg

Definition at line 93 of file TError.h.

const Int_t kBreak = 4000

Definition at line 40 of file TError.h.

R__EXTERN const char* kCheckMsg

Definition at line 94 of file TError.h.

const Int_t kError = 3000

Definition at line 39 of file TError.h.

const Int_t kFatal = 6000

Definition at line 42 of file TError.h.

const Int_t kInfo = 1000

Definition at line 37 of file TError.h.

const Int_t kPrint = 0

Definition at line 36 of file TError.h.

const Int_t kSysError = 5000

Definition at line 41 of file TError.h.

const Int_t kUnset = -1

Definition at line 35 of file TError.h.

const Int_t kWarning = 2000

Definition at line 38 of file TError.h.