#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 9 of file ExceptionCollector.cc.
edm::ExceptionCollector::~ExceptionCollector | ( | ) |
Definition at line 16 of file ExceptionCollector.cc.
void edm::ExceptionCollector::addException | ( | cms::Exception const & | exception | ) |
Definition at line 53 of file ExceptionCollector.cc.
References accumulatedExceptions_, cms::Exception::clone(), cms::Exception::explainSelf(), firstException_, initialMessage_, and nExceptions_.
Referenced by edm::WorkerManager::endJob().
void edm::ExceptionCollector::call | ( | std::function< void(void)> | f | ) |
Definition at line 35 of file ExceptionCollector.cc.
References accumulatedExceptions_, cms::Exception::clone(), cms::Exception::explainSelf(), f, firstException_, initialMessage_, nExceptions_, and edm::convertException::wrap().
Referenced by edm::EventProcessor::endJob(), and edm::SubProcess::endJob().
bool edm::ExceptionCollector::hasThrown | ( | ) | const |
Definition at line 20 of file ExceptionCollector.cc.
References nExceptions_.
Referenced by edm::EventProcessor::endJob(), edm::Schedule::endJob(), and edm::SubProcess::endJob().
void edm::ExceptionCollector::rethrow | ( | ) | const |
Definition at line 25 of file ExceptionCollector.cc.
References accumulatedExceptions_, firstException_, and nExceptions_.
Referenced by edm::EventProcessor::endJob(), and edm::SubProcess::endJob().
|
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().