31 : theMessage{mess}, theName{in}, theLine{at} {
33 std::ostringstream os;
35 whatString = os.str();
39 if (std::getenv(
"DumpCoreOnHadronicException")) {
41 "Fatal problem in above location");
49 return whatString.c_str();
53 aS <<
"In " << theName <<
", line " << theLine <<
": " << std::endl;
54 aS <<
"===> " << theMessage << std::endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
void Report(std::ostream &aS) const
G4HadronicException(G4String in, G4int at, G4String mess)
const char * what() const noexcept override
virtual ~G4HadronicException()