BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Handler that overrides Geant4's behaviour back to a normal exception. More...
#include <BDSExceptionHandler.hh>
Public Member Functions | |
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. | |
BDSExceptionHandler (const BDSExceptionHandler &)=delete | |
As per G4 - delete these. | |
BDSExceptionHandler & | operator= (const BDSExceptionHandler &)=delete |
As per G4 - delete these. | |
Handler that overrides Geant4's behaviour back to a normal exception.
If left alone, Geant4 will use abort() which won't exit safely. Therefore, we use the exception handler they provide and change the behaviour to throwing one of our exceptions which we generally require to be caught.
Overall BDSIM can be expected to throw a BDSException or a std::exception.
Definition at line 36 of file BDSExceptionHandler.hh.
BDSExceptionHandler::BDSExceptionHandler | ( | ) |
When called, the base class will register this object with G4StateManager.
Definition at line 23 of file BDSExceptionHandler.cc.
|
virtual |
Definition at line 26 of file BDSExceptionHandler.cc.
|
virtual |
Virtual method to override behaviour.
Definition at line 29 of file BDSExceptionHandler.cc.