Celeritas
0.5.0-56+6b053cd
|
Install and clear a Geant exception handler during this class lifetime. More...
#include <ScopedGeantExceptionHandler.hh>
Public Member Functions | |
ScopedGeantExceptionHandler () | |
Install the Celeritas Geant4 exception handler. More... | |
~ScopedGeantExceptionHandler () | |
Revert to the previous exception handler. | |
CELER_DELETE_COPY_MOVE (ScopedGeantExceptionHandler) | |
Install and clear a Geant exception handler during this class lifetime.
Note that creating a G4RunManagerKernel
resets the exception handler, so errors thrown during setup CANNOT be caught by Celeritas, and this class can only be used after creating the G4RunManager
.
|
inline |
Install the Celeritas Geant4 exception handler.
The base class of the exception handler calls SetExceptionHandler...
Do nothing if Geant4 is disabled (source file will not be compiled)
celeritas::ScopedGeantExceptionHandler::CELER_DELETE_COPY_MOVE | ( | ScopedGeantExceptionHandler | ) |
Prevent copying and moving for RAII class