Celeritas  0.5.0-56+6b053cd
List of all members
celeritas::ScopedRootErrorHandler Class Reference

Install a ROOT Error Handler to redirect the message toward the Celeritas Logger. More...

#include <ScopedRootErrorHandler.hh>

Public Member Functions

 CELER_DELETE_COPY_MOVE (ScopedRootErrorHandler)
 
static void disable_signal_handler ()
 Clear ROOT's signal handlers that get installed on startup/activation. More...
 
 ScopedRootErrorHandler ()
 Install the Celeritas ROOT error handler.
 
void throw_if_errors () const
 Raise an exception if at least one error has been logged. More...
 
 ~ScopedRootErrorHandler ()
 Revert to the previous ROOT error handler.
 

Detailed Description

Install a ROOT Error Handler to redirect the message toward the Celeritas Logger.

Member Function Documentation

◆ CELER_DELETE_COPY_MOVE()

celeritas::ScopedRootErrorHandler::CELER_DELETE_COPY_MOVE ( ScopedRootErrorHandler  )

Prevent copying and moving for RAII class

◆ disable_signal_handler()

void celeritas::ScopedRootErrorHandler::disable_signal_handler ( )
inlinestatic

Clear ROOT's signal handlers that get installed on startup/activation.

Do nothing if ROOT is disabled (source file will not be compiled)

◆ throw_if_errors()

void celeritas::ScopedRootErrorHandler::throw_if_errors ( ) const
inline

Raise an exception if at least one error has been logged.

Clear the error flag while throwing.


The documentation for this class was generated from the following files: