#include <ExceptionCollector.h>
Public Member Functions | |
void | addException (cms::Exception const &exception) |
void | call (boost::function< void(void)>) |
ExceptionCollector (std::string const &initialMessage) | |
bool | hasThrown () const |
void | rethrow () const |
~ExceptionCollector () | |
Private Attributes | |
std::auto_ptr< cms::Exception > | accumulatedExceptions_ |
std::auto_ptr< cms::Exception > | firstException_ |
std::string | initialMessage_ |
int | nExceptions_ |
Definition at line 34 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 59 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 | ( | boost::function< void(void)> | f | ) |
Definition at line 35 of file ExceptionCollector.cc.
References accumulatedExceptions_, edm::convertException::badAllocToEDM(), trackerHits::c, edm::convertException::charPtrToEDM(), cms::Exception::clone(), alignCSCRings::e, cppFunctionSkipper::exception, cms::Exception::explainSelf(), f, firstException_, initialMessage_, nExceptions_, alignCSCRings::s, edm::convertException::stdToEDM(), AlCaHLTBitMon_QueryRunRegistry::string, edm::convertException::stringToEDM(), and edm::convertException::unknownToEDM().
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(), and edm::Schedule::endJob().
void edm::ExceptionCollector::rethrow | ( | ) | const |
Definition at line 25 of file ExceptionCollector.cc.
References accumulatedExceptions_, firstException_, and nExceptions_.
Referenced by edm::EventProcessor::endJob().
|
private |
Definition at line 46 of file ExceptionCollector.h.
Referenced by addException(), call(), and rethrow().
|
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(), and call().
|
private |
Definition at line 47 of file ExceptionCollector.h.
Referenced by addException(), call(), hasThrown(), and rethrow().