Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 
namespace  ROOT::Internal
 

Functions

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

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.

Note
abort() is only called if abort_bool is true and level < gErrorIgnoreLevel

Definition at line 102 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.