TError.cxx File Reference

#include <stdio.h>
#include <stdlib.h>
#include "snprintf.h"
#include "Varargs.h"
#include "Riostream.h"
#include "TError.h"
#include "TSystem.h"
#include "TString.h"
#include "TEnv.h"
#include "TVirtualMutex.h"

Go to the source code of this file.

Functions

static void DebugPrint (const char *fmt,...)
ErrorHandlerFunc_t SetErrorHandler (ErrorHandlerFunc_t newhandler)
ErrorHandlerFunc_t GetErrorHandler ()
void DefaultErrorHandler (Int_t level, Bool_t abort_bool, const char *location, const char *msg)
void ErrorHandler (Int_t level, const char *location, const char *fmt, va_list ap)
void AbstractMethod (const char *method)
void MayNotUse (const char *method)
void Error (const char *location, const char *va_(fmt),...)
void SysError (const char *location, const char *va_(fmt),...)
void Break (const char *location, const char *va_(fmt),...)
void Info (const char *location, const char *va_(fmt),...)
void Warning (const char *location, const char *va_(fmt),...)
void Fatal (const char *location, const char *va_(fmt),...)

Variables

TVirtualMutexgErrorMutex = 0
Int_t gErrorIgnoreLevel = kUnset
Int_t gErrorAbortLevel = kSysError+1
Bool_t gPrintViaErrorHandler = kFALSE
const char * kAssertMsg = "%s violated at line %d of `%s'"
const char * kCheckMsg = "%s not true at line %d of `%s'"
static ErrorHandlerFunc_t gErrorHandler = DefaultErrorHandler


Function Documentation

void AbstractMethod ( const char *  method  ) 

Definition at line 248 of file TError.cxx.

References Warning().

void Break ( const char *  location,
const char *  va_(fmt),
  ... 
)

Definition at line 290 of file TError.cxx.

References ErrorHandler(), kBreak, and va_.

static void DebugPrint ( const char *  fmt,
  ... 
) [static]

Definition at line 61 of file TError.cxx.

References buf, fprintf(), gErrorMutex, n, and R__LOCKGUARD2.

Referenced by DefaultErrorHandler().

void DefaultErrorHandler ( Int_t  level,
Bool_t  abort_bool,
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 *  va_(fmt),
  ... 
)

Definition at line 268 of file TError.cxx.

void ErrorHandler ( Int_t  level,
const char *  location,
const char *  fmt,
va_list  ap 
)

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 *  va_(fmt),
  ... 
)

Definition at line 323 of file TError.cxx.

References ErrorHandler(), kFatal, and va_.

ErrorHandlerFunc_t GetErrorHandler (  ) 

Definition at line 111 of file TError.cxx.

References gErrorHandler.

void Info ( const char *  location,
const char *  va_(fmt),
  ... 
)

Definition at line 301 of file TError.cxx.

References ErrorHandler(), kInfo, and va_.

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 *  va_(fmt),
  ... 
)

Definition at line 279 of file TError.cxx.

References ErrorHandler(), kSysError, and va_.

void Warning ( const char *  location,
const char *  va_(fmt),
  ... 
)

Definition at line 312 of file TError.cxx.


Variable Documentation

Int_t gErrorAbortLevel = kSysError+1

Definition at line 45 of file TError.cxx.

ErrorHandlerFunc_t gErrorHandler = DefaultErrorHandler [static]

Definition at line 57 of file TError.cxx.

Referenced by ErrorHandler(), GetErrorHandler(), and SetErrorHandler().

Int_t gErrorIgnoreLevel = kUnset

Definition at line 44 of file TError.cxx.

TVirtualMutex* gErrorMutex = 0

Definition at line 42 of file TError.cxx.

Bool_t gPrintViaErrorHandler = kFALSE

Definition at line 46 of file TError.cxx.

const char* kAssertMsg = "%s violated at line %d of `%s'"

Definition at line 48 of file TError.cxx.

const char* kCheckMsg = "%s not true at line %d of `%s'"

Definition at line 49 of file TError.cxx.


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