2 #include "cetlib/trim.h" 3 #include "cetlib_except/exception.h" 14 std::string programName(prog ? prog :
"program");
15 std::string shortDesc(
"ArtException");
16 std::ostringstream longDesc;
17 longDesc <<
"cet::exception caught in " << programName <<
"\n" 18 << cet::trim_right_copy(e.explain_self(),
" \n");
26 std::string programName(prog ? prog :
"program");
27 std::string shortDesc(
"std::bad_allocException");
28 std::ostringstream longDesc;
29 longDesc <<
"std::bad_alloc exception caught in " << programName <<
"\n" 30 <<
"The job has probably exhausted the virtual memory available " 39 std::string programName(prog ? prog :
"program");
40 std::string shortDesc(
"StdLibException");
41 std::ostringstream longDesc;
42 longDesc <<
"Standard library exception caught in " << programName <<
"\n" 43 << cet::trim_right_copy(e.what(),
" \n");
51 std::string programName(prog ? prog :
"program");
52 std::string shortDesc(
"UnknownException");
53 std::ostringstream longDesc;
54 longDesc <<
"Unknown exception caught in " << programName;
void printStdException(std::exception const &e, char const *prog)
void printUnknownException(char const *prog)
MaybeLogger_< ELseverityLevel::ELsev_severe, false > LogSystem
void printArtException(cet::exception const &e, char const *prog)
void printBadAllocException(char const *prog)
cet::coded_exception< error, detail::translate > exception