Class RMGExceptionHandler¶
Defined in File RMGExceptionHandler.hh
Inheritance Relationships¶
Base Type¶
public G4ExceptionHandler
Class Documentation¶
-
class RMGExceptionHandler : public G4ExceptionHandler¶
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.
Public Functions
-
RMGExceptionHandler() = default¶
-
~RMGExceptionHandler() = default¶
-
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.- Returns:
The abort flag returned by the base implementation.
-
inline bool HadWarning() const¶
Whether at least one warning-level exception has been raised.
-
inline bool HadError() const¶
Whether at least one error-level (or higher) exception has been raised.
-
RMGExceptionHandler() = default¶