Print the message of STL exceptions
My collaborator witnessed the following exception message:
%MSG-s ArtException: PostEndJob 26-Aug-2019 14:10:01 CDT ModuleEndJob cet::exception caught in art ---- OtherArt BEGIN ---- EventProcessorFailure BEGIN EventProcessor: an exception occurred during current event processing ---- EventProcessorFailure BEGIN EndPathExecutor: an exception occurred during current event processing ---- ScheduleExecutionFailure BEGIN Path: ProcessingStopped. ---- StdException BEGIN A exception occurred during a call to the module ---- StdException END Exception going through path end_path ---- ScheduleExecutionFailure END ---- EventProcessorFailure END ---- EventProcessorFailure END ---- OtherArt END %MSG
with the precious information that A exception occurred during a call to the module.
It turns out that was a
It would help if the message had specified
what()the exception was (after all, it's derived from
std::exception, so it should be able to tell), and maybe the actual type of the exception (
I don't exclude that the output was printed somewhere else in the log, but even if so, it was surely not as prominent as in this 5-level-indented message.