15 const char* exceptionCode,
19 static const G4String es_banner
20 =
"\n-------- EEEE ------- G4Exception-START -------- EEEE -------\n";
21 static const G4String ee_banner
22 =
"\n-------- EEEE -------- G4Exception-END --------- EEEE -------\n";
23 static const G4String ws_banner
24 =
"\n-------- WWWW ------- G4Exception-START -------- WWWW -------\n";
25 static const G4String we_banner
26 =
"\n-------- WWWW -------- G4Exception-END --------- WWWW -------\n";
28 std::stringstream message;
29 message <<
"*** G4Exception : " << exceptionCode <<
"\n" 30 <<
" issued by : " << exceptionOrigin <<
"\n" 37 case FatalErrorInArgument:
38 case RunMustBeAborted:
39 case EventMustBeAborted:
40 ss << es_banner << message.str() << ee_banner;
46 << ws_banner << message.str() <<
"*** This is just a warning message. ***"
~ExceptionHandler() override
bool Notify(const char *exceptionOrigin, const char *exceptionCode, G4ExceptionSeverity severity, const char *description) override