20#include "BDSException.hh"
21#include "BDSExceptionHandler.hh"
26BDSExceptionHandler::~BDSExceptionHandler()
30 const char* exceptionCode,
31 G4ExceptionSeverity severity,
32 const char* description)
34 G4bool underlyingResult = G4ExceptionHandler::Notify(originOfException,
40 {
throw BDSException(__METHOD_NAME__,
"Geant4 exception thrown");}
BDSExceptionHandler()
When called, the base class will register this object with G4StateManager.
virtual G4bool Notify(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Virtual method to override behaviour.
General exception with possible name of object and message.