TError.h File Reference

#include <stdarg.h>
#include "Rtypes.h"

Go to the source code of this file.

Defines

#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 ErrorHandler (int level, const char *location, const char *fmt, va_list va)
void DefaultErrorHandler (int level, Bool_t abort, const char *location, const char *msg)
ErrorHandlerFunc_t SetErrorHandler (ErrorHandlerFunc_t newhandler)
ErrorHandlerFunc_t GetErrorHandler ()
void Info (const char *location, const char *msgfmt,...)
void Warning (const char *location, const char *msgfmt,...)
void Error (const char *location, const char *msgfmt,...)
void Break (const char *location, const char *msgfmt,...)
void SysError (const char *location, const char *msgfmt,...)
void Fatal (const char *location, const char *msgfmt,...)
void AbstractMethod (const char *method)
void MayNotUse (const char *method)

Variables

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


Define Documentation

#define R__ASSERT (  ) 

Value:

do { \
      if (!(e)) ::Fatal("", kAssertMsg, _QUOTE_(e), __LINE__, __FILE__); \
   } while (0)

Definition at line 97 of file TError.h.

#define R__CHECK (  ) 

Value:

do { \
      if (!(e)) ::Warning("", kCheckMsg, _QUOTE_(e), __LINE__, __FILE__); \
   } while (0)

Definition at line 101 of file TError.h.


Typedef Documentation

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

Definition at line 48 of file TError.h.


Function Documentation

void AbstractMethod ( const char *  method  ) 

Definition at line 248 of file TError.cxx.

References Warning().

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

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

Definition at line 119 of file TError.cxx.

References TSystem::Abort(), TString::CompareTo(), TString::Data(), DebugPrint(), fflush(), TString::Form(), gEnv, gErrorIgnoreLevel, gErrorMutex, TEnv::GetValue(), gSystem, kBreak, kError, kFatal, TString::kIgnoreCase, kInfo, kPrint, kSysError, kUnset, kWarning, R__LOCKGUARD2, TSystem::StackTrace(), StrDup(), and type.

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

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

Definition at line 196 of file TError.cxx.

References buf, Form(), gErrorAbortLevel, gErrorHandler, gErrorMutex, TSystem::GetError(), gSystem, kFatal, kSysError, kTRUE, n, R__LOCKGUARD2, and R__VA_COPY.

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

ErrorHandlerFunc_t GetErrorHandler (  ) 

Definition at line 111 of file TError.cxx.

References gErrorHandler.

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

void MayNotUse ( const char *  method  ) 

Definition at line 259 of file TError.cxx.

References Warning().

ErrorHandlerFunc_t SetErrorHandler ( ErrorHandlerFunc_t  newhandler  ) 

Definition at line 101 of file TError.cxx.

References gErrorHandler.

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 107 of file TError.h.

R__EXTERN Int_t gErrorIgnoreLevel

Definition at line 106 of file TError.h.

R__EXTERN TVirtualMutex* gErrorMutex

Definition at line 46 of file TError.h.

R__EXTERN Bool_t gPrintViaErrorHandler

Definition at line 108 of file TError.h.

R__EXTERN const char* kAssertMsg

Definition at line 94 of file TError.h.

const Int_t kBreak = 4000

Definition at line 42 of file TError.h.

R__EXTERN const char* kCheckMsg

Definition at line 95 of file TError.h.

const Int_t kError = 3000

Definition at line 41 of file TError.h.

const Int_t kFatal = 6000

Definition at line 44 of file TError.h.

const Int_t kInfo = 1000

Definition at line 39 of file TError.h.

const Int_t kPrint = 0

Definition at line 38 of file TError.h.

const Int_t kSysError = 5000

Definition at line 43 of file TError.h.

const Int_t kUnset = -1

Definition at line 37 of file TError.h.

const Int_t kWarning = 2000

Definition at line 40 of file TError.h.


Generated on Tue Jul 5 15:56:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1