#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 | |
TVirtualMutex * | gErrorMutex = 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 |
void AbstractMethod | ( | const char * | method | ) |
void Break | ( | const char * | location, | |
const char * | va_(fmt), | |||
... | ||||
) |
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), | |||
... | ||||
) |
ErrorHandlerFunc_t GetErrorHandler | ( | ) |
void Info | ( | const char * | location, | |
const char * | va_(fmt), | |||
... | ||||
) |
void MayNotUse | ( | const char * | method | ) |
ErrorHandlerFunc_t SetErrorHandler | ( | ErrorHandlerFunc_t | newhandler | ) |
void SysError | ( | const char * | location, | |
const char * | va_(fmt), | |||
... | ||||
) |
void Warning | ( | const char * | location, | |
const char * | va_(fmt), | |||
... | ||||
) |
Definition at line 312 of file TError.cxx.
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().
Definition at line 44 of file TError.cxx.
TVirtualMutex* gErrorMutex = 0 |
Definition at line 42 of file TError.cxx.
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.
Definition at line 49 of file TError.cxx.