59void G4Exception(
const char* originOfException,
const char* exceptionCode,
65 if(exceptionHandler !=
nullptr)
67 toBeAborted = exceptionHandler->
Notify(originOfException, exceptionCode,
68 severity, description);
72 static const G4String& es_banner = G4ExceptionErrBannerStart();
73 static const G4String& ee_banner = G4ExceptionErrBannerEnd();
74 static const G4String& ws_banner = G4ExceptionWarnBannerStart();
75 static const G4String& we_banner = G4ExceptionWarnBannerEnd();
76 std::ostringstream message;
77 message <<
"\n*** ExceptionHandler is not defined ***\n"
78 <<
"*** G4Exception : " << exceptionCode <<
G4endl
79 <<
" issued by : " << originOfException <<
G4endl
84 G4cerr << es_banner << message.str() <<
"*** Fatal Exception ***"
88 G4cerr << es_banner << message.str()
89 <<
"*** Fatal Error In Argument ***" << ee_banner <<
G4endl;
92 G4cerr << es_banner << message.str() <<
"*** Run Must Be Aborted ***"
96 G4cerr << es_banner << message.str() <<
"*** Event Must Be Aborted ***"
100 G4cout << ws_banner << message.str()
101 <<
"*** This is just a warning message. ***" << we_banner
120 <<
"*** No guarantee for further execution ***" <<
G4endl;