Logo ROOT  
Reference Guide
TErrorDefaultHandler.cxx File Reference
#include <TEnv.h>
#include <TError.h>
#include <ThreadLocalStorage.h>
#include <TSystem.h>
#include <Varargs.h>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <mutex>
Include dependency graph for TErrorDefaultHandler.cxx:

Namespaces

 ROOT
 VSD Structures.
 
 ROOT::Internal
 

Functions

static void DebugPrint (const char *fmt,...)
 Print debugging message to stderr and, on Windows, to the system debugger. More...
 
void DefaultErrorHandler (Int_t level, Bool_t abort_bool, const char *location, const char *msg)
 The default error handler function. More...
 
static std::mutex * GetErrorMutex ()
 Serializes error output, destructed by the gROOT destructor via ReleaseDefaultErrorHandler() More...
 
void ROOT::Internal::ReleaseDefaultErrorHandler ()
 Destructs resources that are taken by using the default error handler. More...
 

Detailed Description

Date
2020-06-14

Definition in file TErrorDefaultHandler.cxx.

Function Documentation

◆ DebugPrint()

static void DebugPrint ( const char *  fmt,
  ... 
)
static

Print debugging message to stderr and, on Windows, to the system debugger.

Definition at line 57 of file TErrorDefaultHandler.cxx.

◆ DefaultErrorHandler()

void DefaultErrorHandler ( Int_t  level,
Bool_t  abort_bool,
const char *  location,
const char *  msg 
)

The default error handler function.

It prints the message on stderr and if abort is set it aborts the application. Replaces the minimal error handler of TError.h as part of the gROOT construction. TError's minimal handler is put back in place during the gROOT destruction.

Definition at line 101 of file TErrorDefaultHandler.cxx.

◆ GetErrorMutex()

static std::mutex* GetErrorMutex ( )
static

Serializes error output, destructed by the gROOT destructor via ReleaseDefaultErrorHandler()

Definition at line 38 of file TErrorDefaultHandler.cxx.