Celeritas 0.7.0-dev.244+develop.bf1c0bd0
Loading...
Searching...
No Matches
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

 ScopedRootErrorHandler (ScopedRootErrorHandler const &)=delete
 
ScopedRootErrorHandleroperator= (ScopedRootErrorHandler const &)=delete
 
 ScopedRootErrorHandler (ScopedRootErrorHandler &&)=delete
 
ScopedRootErrorHandleroperator= (ScopedRootErrorHandler &&)=delete
 
static void disable_signal_handler ()
 Clear ROOT's signal handlers that get installed on startup/activation.
 
void throw_if_errors () const
 Raise an exception if at least one error has been logged.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ScopedRootErrorHandler() [1/2]

celeritas::ScopedRootErrorHandler::ScopedRootErrorHandler ( ScopedRootErrorHandler const )
delete

Prevent copying and moving for RAII class

◆ ScopedRootErrorHandler() [2/2]

celeritas::ScopedRootErrorHandler::ScopedRootErrorHandler ( ScopedRootErrorHandler &&  )
delete

Prevent copying and moving for RAII class

Member Function Documentation

◆ 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)

◆ operator=() [1/2]

ScopedRootErrorHandler & celeritas::ScopedRootErrorHandler::operator= ( ScopedRootErrorHandler &&  )
delete

Prevent copying and moving for RAII class

◆ operator=() [2/2]

ScopedRootErrorHandler & celeritas::ScopedRootErrorHandler::operator= ( ScopedRootErrorHandler const )
delete

Prevent copying and moving for RAII class

◆ 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: