remage
Simulation framework for HPGe-based experiments
 
Loading...
Searching...
No Matches
RMGExceptionHandler Class Reference

Geant4 exception handler that records whether warnings/errors have occurred. More...

#include <RMGExceptionHandler.hh>

Inheritance diagram for RMGExceptionHandler:
Collaboration diagram for RMGExceptionHandler:

Public Member Functions

 RMGExceptionHandler (const RMGExceptionHandler &)=delete
 
RMGExceptionHandleroperator= (const RMGExceptionHandler &)=delete
 
bool Notify (const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description) override
 Record the severity and delegate the exception to G4ExceptionHandler.
 
bool HadWarning () const
 Whether at least one warning-level exception has been raised.
 
bool HadError () const
 Whether at least one error-level (or higher) exception has been raised.
 

Detailed Description

Geant4 exception handler that records whether warnings/errors have occurred.

Forwards all exceptions to the standard Geant4 reporting path while keeping flags that RMGManager can query at the end of the job to set the process exit status.

Member Function Documentation

◆ Notify()

bool RMGExceptionHandler::Notify ( const char * originOfException,
const char * exceptionCode,
G4ExceptionSeverity severity,
const char * description )
override

Record the severity and delegate the exception to G4ExceptionHandler.

Returns
The abort flag returned by the base implementation.

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