Definition at line 42 of file pyG4ExceptionHandler.cc.
PyG4ExceptionHandler::PyG4ExceptionHandler |
( |
| ) |
|
|
inline |
Definition at line 44 of file pyG4ExceptionHandler.cc.
46 sm-> SetExceptionHandler(
this);
static G4StateManager * GetStateManager()
PyG4ExceptionHandler::~PyG4ExceptionHandler |
( |
| ) |
|
|
inline |
G4bool PyG4ExceptionHandler::Notify |
( |
const char * |
originOfException, |
|
|
const char * |
exceptionCode, |
|
|
G4ExceptionSeverity |
severity, |
|
|
const char * |
description |
|
) |
| |
|
inlinevirtual |
Implements G4VExceptionHandler.
Definition at line 50 of file pyG4ExceptionHandler.cc.
55 std::ostringstream message;
56 message <<
"*** G4Exception : " << exceptionCode <<
G4endl
57 <<
" issued by : " << originOfException <<
G4endl
62 PyErr_SetString(PyExc_AssertionError,
63 "*** Fatal Exception ***");
69 PyErr_SetString(PyExc_ValueError,
70 "*** Fatal Error In Argument ***");
76 PyErr_SetString(PyExc_RuntimeError,
77 "*** Run Must Be Aborted ***");
83 PyErr_SetString(PyExc_RuntimeError,
84 "*** Event Must Be Aborted ***");
90 PyErr_Warn(PyExc_RuntimeWarning,
91 "*** This is just a warning message. ***");
G4GLOB_DLL std::ostream G4cerr
The documentation for this class was generated from the following file: