|
ROOT
Reference Guide |
|
Go to the documentation of this file.
75 extern "C" void ErrorHandler(
int level,
const char *location,
const char *fmt, std::va_list va);
82 extern void Info(
const char *location,
const char *msgfmt, ...)
83 #if defined(__GNUC__) && !defined(__CINT__)
84 __attribute__((format(printf, 2, 3)))
87 extern void Warning(
const char *location,
const char *msgfmt, ...)
88 #if defined(__GNUC__) && !defined(__CINT__)
89 __attribute__((format(printf, 2, 3)))
92 extern void Error(
const char *location,
const char *msgfmt, ...)
93 #if defined(__GNUC__) && !defined(__CINT__)
94 __attribute__((format(printf, 2, 3)))
97 extern void Break(
const char *location,
const char *msgfmt, ...)
98 #if defined(__GNUC__) && !defined(__CINT__)
99 __attribute__((format(printf, 2, 3)))
102 extern void SysError(
const char *location,
const char *msgfmt, ...)
103 #if defined(__GNUC__) && !defined(__CINT__)
104 __attribute__((format(printf, 2, 3)))
107 extern void Fatal(
const char *location,
const char *msgfmt, ...)
108 #if defined(__GNUC__) && !defined(__CINT__)
109 __attribute__((format(printf, 2, 3)))
114 extern void MayNotUse(
const char *method);
115 extern void Obsolete(
const char *
function,
const char *asOfVers,
const char *removedFromVers);
120 #define R__ASSERT(e) \
122 if (!(e)) ::Fatal("", kAssertMsg, _QUOTE_(e), __LINE__, __FILE__); \
124 #define R__CHECK(e) \
126 if (!(e)) ::Warning("", kCheckMsg, _QUOTE_(e), __LINE__, __FILE__); \
void MayNotUse(const char *method)
This function can be used in classes that should override a certain function, but in the inherited cl...
R__EXTERN Bool_t gPrintViaErrorHandler
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
void(* ErrorHandlerFunc_t)(int level, Bool_t abort, const char *location, const char *msg)
std::function< const char *()> ErrorSystemMsgHandlerFunc_t
Retrieves the error string associated with the last system error.
ErrorHandlerFunc_t GetErrorHandler()
Returns the current error handler function.
TVirtualMutex * gErrorMutex
Error handling routines.
This class implements a mutex interface.
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
void ErrorHandler(int level, const char *location, const char *fmt, std::va_list va)
General error handler function. It calls the user set error handler.
void Break(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Obsolete(const char *function, const char *asOfVers, const char *removedFromVers)
Use this function to declare a function obsolete.
R__EXTERN Int_t gErrorAbortLevel
typedef void((*Func_t)())
void DefaultErrorHandler(int level, Bool_t abort, const char *location, const char *msg)
The default error handler function.
ErrorHandlerFunc_t SetErrorHandler(ErrorHandlerFunc_t newhandler)
Set an errorhandler function. Returns the old handler.
R__EXTERN Int_t gErrorIgnoreLevel
void SysError(const char *location, const char *msgfmt,...)
Use this function in case a system (OS or GUI) related error occurred.
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
R__EXTERN const char * kAssertMsg
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 "rea...
ErrorSystemMsgHandlerFunc_t SetErrorSystemMsgHandler(ErrorSystemMsgHandlerFunc_t h)
Returns the previous system error message handler.
ErrorSystemMsgHandlerFunc_t GetErrorSystemMsgHandler()
R__EXTERN TVirtualMutex *gErrorMutex R__DEPRECATED(6, 26, "ROOT stopped exporting gErrorMutex.")
R__EXTERN const char * kCheckMsg
void MinimalErrorHandler(int level, Bool_t abort, const char *location, const char *msg)
A very simple error handler that is usually replaced by the TROOT default error handler.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.