Geant4 exception handler that records whether warnings/errors have occurred. More...
#include <RMGExceptionHandler.hh>


Public Member Functions | |
| RMGExceptionHandler (const RMGExceptionHandler &)=delete | |
| RMGExceptionHandler & | operator= (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. | |
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.
|
override |
Record the severity and delegate the exception to G4ExceptionHandler.