42 #include "G4String.hh" 64 return (
this == &right);
69 return (
this != &right);
73 const char* exceptionCode,
75 const char* description)
78 =
"\n-------- EEEE ------- G4Exception-START -------- EEEE -------\n";
80 =
"\n-------- EEEE -------- G4Exception-END --------- EEEE -------\n";
82 =
"\n-------- WWWW ------- G4Exception-START -------- WWWW -------\n";
84 =
"\n-------- WWWW -------- G4Exception-END --------- WWWW -------\n";
85 std::ostringstream message;
86 message <<
"*** G4Exception : " << exceptionCode <<
G4endl 87 <<
" issued by : " << originOfException <<
G4endl 89 G4bool abortionForCoreDump =
false;
94 G4cerr << es_banner << message.str() <<
"*** Fatal Exception *** core dump ***" 96 abortionForCoreDump =
true;
99 G4cerr << es_banner << message.str() <<
"*** Fatal Error In Argument *** core dump ***" 101 abortionForCoreDump =
true;
106 G4cerr << es_banner << message.str() <<
"*** Run Must Be Aborted ***" 110 abortionForCoreDump =
false;
115 G4cerr << es_banner << message.str() <<
"*** Event Must Be Aborted ***" 119 abortionForCoreDump =
false;
122 G4cout << ws_banner << message.str() <<
"*** This is just a warning message. ***" 124 abortionForCoreDump =
false;
127 return abortionForCoreDump;
G4int operator!=(const G4ExceptionHandler &right) const
virtual void AbortRun(G4bool softAbort=false)
G4int operator==(const G4ExceptionHandler &right) const
static G4StateManager * GetStateManager()
G4ExceptionHandler & operator=(const G4ExceptionHandler &right)
virtual ~G4ExceptionHandler()
G4GLOB_DLL std::ostream G4cout
static G4RunManager * GetRunManager()
virtual G4bool Notify(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual void AbortEvent()
G4ApplicationState GetCurrentState() const
G4GLOB_DLL std::ostream G4cerr