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;