51 extern "C" void ErrorHandler(
int level,
const char *location,
const char *fmt,
60 extern void Info(
const char *location,
const char *msgfmt, ...)
61 #if defined(__GNUC__) && !defined(__CINT__)
65 extern void Warning(
const char *location,
const char *msgfmt, ...)
66 #if defined(__GNUC__) && !defined(__CINT__)
70 extern void Error(
const char *location,
const char *msgfmt, ...)
71 #if defined(__GNUC__) && !defined(__CINT__)
75 extern void Break(
const char *location,
const char *msgfmt, ...)
76 #if defined(__GNUC__) && !defined(__CINT__)
80 extern void SysError(
const char *location,
const char *msgfmt, ...)
81 #if defined(__GNUC__) && !defined(__CINT__)
85 extern void Fatal(
const char *location,
const char *msgfmt, ...)
86 #if defined(__GNUC__) && !defined(__CINT__)
92 extern void MayNotUse(
const char *method);
93 extern void Obsolete(
const char *
function,
const char *asOfVers,
const char *removedFromVers);
98 #define R__ASSERT(e) \
100 if (!(e)) ::Fatal("", kAssertMsg, _QUOTE_(e), __LINE__, __FILE__); \
102 #define R__CHECK(e) \
104 if (!(e)) ::Warning("", kCheckMsg, _QUOTE_(e), __LINE__, __FILE__); \
ErrorHandlerFunc_t SetErrorHandler(ErrorHandlerFunc_t newhandler)
Set an errorhandler function. Returns the old handler.
R__EXTERN Int_t gErrorIgnoreLevel
R__EXTERN TVirtualMutex * gErrorMutex
void Fatal(const char *location, const char *msgfmt,...)
void DefaultErrorHandler(int level, Bool_t abort, const char *location, const char *msg)
The default error handler function.
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...
This class implements a mutex interface.
R__EXTERN Int_t gErrorAbortLevel
void Break(const char *location, const char *msgfmt,...)
static std::string format(double x, double y, int digits, int width)
void Obsolete(const char *function, const char *asOfVers, const char *removedFromVers)
Use this function to declare a function obsolete.
void SysError(const char *location, const char *msgfmt,...)
void Info(const char *location, const char *msgfmt,...)
void Error(const char *location, const char *msgfmt,...)
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 const char * kCheckMsg
R__EXTERN Bool_t gPrintViaErrorHandler
void Warning(const char *location, const char *msgfmt,...)
void(* ErrorHandlerFunc_t)(int level, Bool_t abort, const char *location, const char *msg)
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
typedef void((*Func_t)())
ErrorHandlerFunc_t GetErrorHandler()
Returns the current error handler function.
void ErrorHandler(int level, const char *location, const char *fmt, va_list va)
General error handler function. It calls the user set error handler.