2 #include "cetlib/trim.h" 3 #include "cetlib_except/exception.h" 15 std::string programName(prog ? prog :
"program");
16 std::string shortDesc(
"ArtException");
17 std::ostringstream longDesc;
18 longDesc <<
"cet::exception caught in " << programName <<
'\n' 19 << cet::trim_right_copy(e.explain_self(),
" \n");
28 std::string programName(prog ? prog :
"program");
29 std::string shortDesc(
"std::bad_allocException");
30 std::ostringstream longDesc;
32 <<
"std::bad_alloc exception caught in " << programName <<
'\n' 33 <<
"The job has probably exhausted the virtual memory available to " 43 std::string programName(prog ? prog :
"program");
44 std::string shortDesc(
"StdLibException");
45 std::ostringstream longDesc;
46 longDesc <<
"Standard library exception caught in " << programName <<
'\n' 47 << cet::trim_right_copy(e.what(),
" \n");
56 std::string programName(prog ? prog :
"program");
57 std::string shortDesc(
"UnknownException");
58 std::ostringstream longDesc;
59 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