#include "TError.h"
#include <cassert>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <string>
Namespaces | |
namespace | ROOT |
Namespace for new ROOT classes and functions. | |
namespace | ROOT::Internal |
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. | |
void | Break (const char *location, const char *fmt,...) |
Use this function in case an error occurred. | |
void | Error (const char *location, const char *fmt,...) |
Use this function in case an error occurred. | |
void | ErrorHandler (Int_t level, const char *location, const char *fmt, std::va_list ap) |
General error handler function. It calls the user set error handler. | |
void | Fatal (const char *location, const char *fmt,...) |
Use this function in case of a fatal error. It will abort the program. | |
ErrorHandlerFunc_t | GetErrorHandler () |
Returns the current error handler function. | |
ErrorSystemMsgHandlerFunc_t | ROOT::Internal::GetErrorSystemMsgHandler () |
static ROOT::Internal::ErrorSystemMsgHandlerFunc_t & | GetErrorSystemMsgHandlerRef () |
void | Info (const char *location, const char *fmt,...) |
Use this function for informational messages. | |
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. | |
void | ROOT::Internal::MinimalErrorHandler (Int_t level, Bool_t abort_bool, const char *location, const char *msg) |
A very simple error handler that is usually replaced by the TROOT default error handler. | |
void | Obsolete (const char *function, const char *asOfVers, const char *removedFromVers) |
Use this function to declare a function obsolete. | |
ErrorHandlerFunc_t | SetErrorHandler (ErrorHandlerFunc_t newhandler) |
Set an errorhandler function. Returns the old handler. | |
ErrorSystemMsgHandlerFunc_t | ROOT::Internal::SetErrorSystemMsgHandler (ErrorSystemMsgHandlerFunc_t h) |
Returns the previous system error message handler. | |
void | SysError (const char *location, const char *fmt,...) |
Use this function in case a system (OS or GUI) related error occurred. | |
void | Warning (const char *location, const char *fmt,...) |
Use this function in warning situations. | |
Variables | |
Int_t | gErrorAbortLevel = kSysError+1 |
non-ignored errors with level equal or above this value will call abort(). Default is kSysError+1 . | |
static ErrorHandlerFunc_t | gErrorHandler = ROOT::Internal::MinimalErrorHandler |
Int_t | gErrorIgnoreLevel = kUnset |
Error handling routines. | |
Bool_t | gPrintViaErrorHandler = kFALSE |
If true, ROOT's Printf will print via the currently active ROOT error handler; if false (default), it will use the standard printf . | |
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 182 of file TError.cxx.
Use this function in case an error occurred.
Definition at line 230 of file TError.cxx.
Use this function in case an error occurred.
Definition at line 208 of file TError.cxx.
void ErrorHandler | ( | Int_t | level, |
const char * | location, | ||
const char * | fmt, | ||
std::va_list | ap ) |
General error handler function. It calls the user set error handler.
Definition at line 111 of file TError.cxx.
Use this function in case of a fatal error. It will abort the program.
gErrorIgnoreLevel > kFatal
Definition at line 267 of file TError.cxx.
ErrorHandlerFunc_t GetErrorHandler | ( | ) |
Returns the current error handler function.
Definition at line 102 of file TError.cxx.
|
static |
Definition at line 43 of file TError.cxx.
Use this function for informational messages.
Definition at line 241 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 191 of file TError.cxx.
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 200 of file TError.cxx.
ErrorHandlerFunc_t SetErrorHandler | ( | ErrorHandlerFunc_t | newhandler | ) |
Set an errorhandler function. Returns the old handler.
Definition at line 92 of file TError.cxx.
Use this function in case a system (OS or GUI) related error occurred.
Definition at line 219 of file TError.cxx.
Use this function in warning situations.
Definition at line 252 of file TError.cxx.
non-ignored errors with level equal or above this value will call abort(). Default is kSysError+1
.
Definition at line 34 of file TError.cxx.
|
static |
Definition at line 40 of file TError.cxx.
Error handling routines.
errors with level below this value will be ignored. Default is kUnset
.
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. Initially the MinimalErrorHandler, which is supposed to be replaced by the proper DefaultErrorHandler()
Definition at line 33 of file TError.cxx.
If true, ROOT's Printf
will print via the currently active ROOT error handler; if false (default), it will use the standard printf
.
Definition at line 35 of file TError.cxx.