#include <ExceptionCollector.h>
Public Member Functions | |
void | addException (cms::Exception const &exception) |
void | call (std::function< void(void)>) |
ExceptionCollector (std::string const &initialMessage) | |
bool | hasThrown () const |
void | rethrow () const |
~ExceptionCollector () | |
Private Attributes | |
std::unique_ptr< cms::Exception > | accumulatedExceptions_ |
std::unique_ptr< cms::Exception > | firstException_ |
std::string | initialMessage_ |
int | nExceptions_ |
Definition at line 33 of file ExceptionCollector.h.
edm::ExceptionCollector::ExceptionCollector | ( | std::string const & | initialMessage | ) |
Definition at line 22 of file ExceptionCollector.cc.
edm::ExceptionCollector::~ExceptionCollector | ( | ) |
Definition at line 25 of file ExceptionCollector.cc.
void edm::ExceptionCollector::addException | ( | cms::Exception const & | exception | ) |
Definition at line 50 of file ExceptionCollector.cc.
References accumulatedExceptions_, cppFunctionSkipper::exception, firstException_, initialMessage_, and nExceptions_.
Referenced by edm::WorkerManager::endJob().
void edm::ExceptionCollector::call | ( | std::function< void(void)> | f | ) |
Definition at line 37 of file ExceptionCollector.cc.
References accumulatedExceptions_, cms::Exception::clone(), cms::Exception::explainSelf(), f, firstException_, initialMessage_, nExceptions_, cms::Exception::returnCode(), and edm::convertException::wrap().
bool edm::ExceptionCollector::hasThrown | ( | ) | const |
Definition at line 27 of file ExceptionCollector.cc.
References nExceptions_.
Referenced by edm::Schedule::endJob().
void edm::ExceptionCollector::rethrow | ( | ) | const |
Definition at line 29 of file ExceptionCollector.cc.
References accumulatedExceptions_, firstException_, and nExceptions_.
|
private |
Definition at line 45 of file ExceptionCollector.h.
Referenced by addException(), call(), and rethrow().
|
private |
Definition at line 44 of file ExceptionCollector.h.
Referenced by addException(), call(), and rethrow().
|
private |
Definition at line 43 of file ExceptionCollector.h.
Referenced by addException(), and call().
|
private |
Definition at line 46 of file ExceptionCollector.h.
Referenced by addException(), call(), hasThrown(), and rethrow().