SFrame 3.6
core/include/SErrorHandler.h File Reference
#include <TError.h>
Include dependency graph for SErrorHandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SErrorHandler (int level, Bool_t abort, const char *location, const char *message)
 Function printing log messages from ROOT.

Function Documentation

void SErrorHandler ( int  level,
Bool_t  abort,
const char *  location,
const char *  message 
)

Function printing log messages from ROOT.

This function is the "SFrame version" of DefaultErrorHandler defined in the TError.h header. By calling

SetErrorHandler( SErrorHandler )

somewhere at the beginning of the application, we can channel all ROOT messages through our own message logging facility.

Parameters:
levelROOT message level
abortFlag telling that the process should abort execution
locationThe source of the message
messageThe message itself

Definition at line 44 of file SErrorHandler.cxx.

References SLogger::endmsg(), ERROR, FATAL, INFO, msgLevelMap, and WARNING.

Referenced by SetSErrorHandler().