73extern "C" void ErrorHandler(
int level,
const char *location,
const char *fmt, std::va_list va);
80extern void Info(
const char *location,
const char *msgfmt, ...)
81#if defined(__GNUC__) && !defined(__CINT__)
82__attribute__((
format(printf, 2, 3)))
85extern void Warning(
const char *location,
const char *msgfmt, ...)
86#if defined(__GNUC__) && !defined(__CINT__)
87__attribute__((
format(printf, 2, 3)))
90extern void Error(
const char *location,
const char *msgfmt, ...)
91#if defined(__GNUC__) && !defined(__CINT__)
92__attribute__((
format(printf, 2, 3)))
95extern void Break(
const char *location,
const char *msgfmt, ...)
96#if defined(__GNUC__) && !defined(__CINT__)
97__attribute__((
format(printf, 2, 3)))
100extern void SysError(
const char *location,
const char *msgfmt, ...)
101#if defined(__GNUC__) && !defined(__CINT__)
102__attribute__((
format(printf, 2, 3)))
105extern void Fatal(
const char *location,
const char *msgfmt, ...)
106#if defined(__GNUC__) && !defined(__CINT__)
107__attribute__((
format(printf, 2, 3)))
112extern void MayNotUse(
const char *method);
113extern void Obsolete(
const char *function,
const char *asOfVers,
const char *removedFromVers);
118#define R__ASSERT(e) \
120 if (!(e)) ::Fatal("", kAssertMsg, _QUOTE_(e), __LINE__, __FILE__); \
124 if (!(e)) ::Warning("", kCheckMsg, _QUOTE_(e), __LINE__, __FILE__); \
void DefaultErrorHandler(int level, Bool_t abort, const char *location, const char *msg)
The default error handler function.
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.
ErrorHandlerFunc_t GetErrorHandler()
Returns the current error handler function.
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
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...
void SysError(const char *location, const char *msgfmt,...)
Use this function in case a system (OS or GUI) related error occurred.
void(* ErrorHandlerFunc_t)(int level, Bool_t abort, const char *location, const char *msg)
void Break(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void MayNotUse(const char *method)
This function can be used in classes that should override a certain function, but in the inherited cl...
Int_t gErrorIgnoreLevel
Error handling routines.
constexpr Int_t kSysError
void Obsolete(const char *function, const char *asOfVers, const char *removedFromVers)
Use this function to declare a function obsolete.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
ErrorHandlerFunc_t SetErrorHandler(ErrorHandlerFunc_t newhandler)
Set an errorhandler function. Returns the old handler.
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
Bool_t gPrintViaErrorHandler
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
This class implements a mutex interface.
std::function< const char *()> ErrorSystemMsgHandlerFunc_t
Retrieves the error string associated with the last system error.
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.
ErrorSystemMsgHandlerFunc_t SetErrorSystemMsgHandler(ErrorSystemMsgHandlerFunc_t h)
Returns the previous system error message handler.
ErrorSystemMsgHandlerFunc_t GetErrorSystemMsgHandler()
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.