67{
69 "\n-------- EEEE ------- G4Exception-START -------- EEEE -------\n";
71 "\n-------- EEEE -------- G4Exception-END --------- EEEE -------\n";
73 "\n-------- WWWW ------- G4Exception-START -------- WWWW -------\n";
75 "\n-------- WWWW -------- G4Exception-END --------- WWWW -------\n";
76 std::ostringstream message;
77 message <<
"*** G4Exception : " << exceptionCode <<
G4endl
78 <<
" issued by : " << originOfException <<
G4endl << description <<
G4endl;
79 G4bool abortionForCoreDump =
false;
81 switch (severity) {
83 G4cerr << es_banner << message.str() <<
"*** Fatal Exception *** core dump ***" <<
G4endl;
84 DumpTrackInfo();
86 abortionForCoreDump = true;
87 break;
89 G4cerr << es_banner << message.str() <<
"*** Fatal Error In Argument *** core dump ***"
91 DumpTrackInfo();
93 abortionForCoreDump = true;
94 break;
97 G4cerr << es_banner << message.str() <<
"*** Run Must Be Aborted ***" <<
G4endl;
98 DumpTrackInfo();
101 }
102 abortionForCoreDump = false;
103 break;
106 G4cerr << es_banner << message.str() <<
"*** Event Must Be Aborted ***" <<
G4endl;
107 DumpTrackInfo();
110 }
111 abortionForCoreDump = false;
112 break;
114 G4cout << ws_banner << message.str() <<
"*** This is just a warning message. ***" << we_banner
116 abortionForCoreDump = false;
117 break;
118 default:
119 abortionForCoreDump = false;
120 break;
121 }
122 return abortionForCoreDump;
123}
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
virtual void AbortRun(G4bool softAbort=false)
static G4RunManager * GetRunManager()
virtual void AbortEvent()
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()