#include <ExceptionHandler.h>
Definition at line 19 of file ExceptionHandler.h.
ExceptionHandler::ExceptionHandler |
( |
| ) |
|
|
explicit |
ExceptionHandler::~ExceptionHandler |
( |
| ) |
|
|
override |
bool ExceptionHandler::Notify |
( |
const char * |
exceptionOrigin, |
|
|
const char * |
exceptionCode, |
|
|
G4ExceptionSeverity |
severity, |
|
|
const char * |
description |
|
) |
| |
|
override |
Definition at line 15 of file ExceptionHandler.cc.
References heppy_report::description.
Referenced by operator!=().
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. ***"