ROOT 6.12/07 Reference Guide |
#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"
#include "ThreadLocalStorage.h"
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 *va_(fmt),...) |
Use this function in case an error occurred. More... | |
static void | DebugPrint (const char *fmt,...) |
Print debugging message to stderr and, on Windows, to the system debugger. More... | |
void | DefaultErrorHandler (Int_t level, Bool_t abort_bool, const char *location, const char *msg) |
The default error handler function. More... | |
void | Error (const char *location, const char *va_(fmt),...) |
Use this function in case an error occurred. More... | |
void | ErrorHandler (Int_t level, const char *location, const char *fmt, va_list ap) |
General error handler function. It calls the user set error handler. More... | |
void | Fatal (const char *location, const char *va_(fmt),...) |
Use this function in case of a fatal error. It will abort the program. More... | |
ErrorHandlerFunc_t | GetErrorHandler () |
Returns the current error handler function. More... | |
void | Info (const char *location, const char *va_(fmt),...) |
Use this function for informational messages. More... | |
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 *va_(fmt),...) |
Use this function in case a system (OS or GUI) related error occurred. More... | |
void | Warning (const char *location, const char *va_(fmt),...) |
Use this function in warning situations. More... | |
Variables | |
Int_t | gErrorAbortLevel = kSysError+1 |
static ErrorHandlerFunc_t | gErrorHandler = DefaultErrorHandler |
Int_t | gErrorIgnoreLevel = kUnset |
TVirtualMutex * | gErrorMutex = 0 |
Error handling routines. More... | |
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'" |
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 * | va_fmt, | ||
... | |||
) |
Use this function in case an error occurred.
Definition at line 310 of file TError.cxx.
|
static |
Print debugging message to stderr and, on Windows, to the system debugger.
Definition at line 64 of file TError.cxx.
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 * | va_fmt, | ||
... | |||
) |
Use this function in case an error occurred.
Definition at line 288 of file TError.cxx.
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 * | va_fmt, | ||
... | |||
) |
Use this function in case of a fatal error. It will abort the program.
Definition at line 346 of file TError.cxx.
ErrorHandlerFunc_t GetErrorHandler | ( | ) |
Returns the current error handler function.
Definition at line 116 of file TError.cxx.
void Info | ( | const char * | location, |
const char * | va_fmt, | ||
... | |||
) |
Use this function for informational messages.
Definition at line 321 of file TError.cxx.
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 * | va_fmt, | ||
... | |||
) |
Use this function in case a system (OS or GUI) related error occurred.
Definition at line 299 of file TError.cxx.
void Warning | ( | const char * | location, |
const char * | va_fmt, | ||
... | |||
) |
Use this function in warning situations.
Definition at line 332 of file TError.cxx.
Definition at line 44 of file TError.cxx.
|
static |
Definition at line 58 of file TError.cxx.
Definition at line 43 of file TError.cxx.
TVirtualMutex* gErrorMutex = 0 |
Error handling routines.
This file defines a number of global error handling routines: Warning(), Error(), SysError() and Fatal(). They all take a location string (where the error happened) and a printf style format string plus vararg's. In the end these functions call an errorhandler function. By default DefaultErrorHandler() is used.
Definition at line 41 of file TError.cxx.
Definition at line 45 of file TError.cxx.
const char* kAssertMsg = "%s violated at line %d of `%s'" |
Definition at line 47 of file TError.cxx.
const char* kCheckMsg = "%s not true at line %d of `%s'" |
Definition at line 48 of file TError.cxx.