16 const char* exceptionCode,
20 static const G4String es_banner
21 =
"\n-------- EEEE ------- G4Exception-START -------- EEEE -------\n";
22 static const G4String ee_banner
23 =
"\n-------- EEEE -------- G4Exception-END --------- EEEE -------\n";
24 static const G4String ws_banner
25 =
"\n-------- WWWW ------- G4Exception-START -------- WWWW -------\n";
26 static const G4String we_banner
27 =
"\n-------- WWWW -------- G4Exception-END --------- WWWW -------\n";
29 std::stringstream message;
30 message <<
"*** G4Exception : " << exceptionCode <<
"\n" 31 <<
" issued by : " << exceptionOrigin <<
"\n" 38 case FatalErrorInArgument:
39 case RunMustBeAborted:
40 case EventMustBeAborted:
41 ss << es_banner << message.str() << ee_banner;
47 << 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