#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 14 of file ExceptionHandler.cc.
References heppy_report::description, and python.rootplot.argparse::message.
Referenced by operator!=().
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";
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. ***"