CMS 3D CMS Logo

ExceptionCollector.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_ExceptionCollector_h
2 #define FWCore_Utilities_ExceptionCollector_h
3 
24 #include <functional>
25 #include <memory>
26 #include <string>
27 
28 namespace cms {
29  class Exception;
30 }
31 
32 namespace edm {
34  public:
35  ExceptionCollector(std::string const& initialMessage);
37  bool hasThrown() const;
38  void rethrow() const;
39  void call(std::function<void(void)>);
41 
42  private:
44  std::unique_ptr<cms::Exception> firstException_;
45  std::unique_ptr<cms::Exception> accumulatedExceptions_;
47  };
48 } // namespace edm
49 
50 #endif
edm::ExceptionCollector::initialMessage_
std::string initialMessage_
Definition: ExceptionCollector.h:43
edm::ExceptionCollector::addException
void addException(cms::Exception const &exception)
Definition: ExceptionCollector.cc:51
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ExceptionCollector::accumulatedExceptions_
std::unique_ptr< cms::Exception > accumulatedExceptions_
Definition: ExceptionCollector.h:45
edm::ExceptionCollector
Definition: ExceptionCollector.h:33
edm::ExceptionCollector::firstException_
std::unique_ptr< cms::Exception > firstException_
Definition: ExceptionCollector.h:44
edm::ExceptionCollector::call
void call(std::function< void(void)>)
Definition: ExceptionCollector.cc:38
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ExceptionCollector::hasThrown
bool hasThrown() const
Definition: ExceptionCollector.cc:28
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
Exception
edm::ExceptionCollector::~ExceptionCollector
~ExceptionCollector()
Definition: ExceptionCollector.cc:26
edm::ExceptionCollector::nExceptions_
int nExceptions_
Definition: ExceptionCollector.h:46
HiBiasedCentrality_cfi.function
function
Definition: HiBiasedCentrality_cfi.py:4
cms::Exception
Definition: Exception.h:70
edm::ExceptionCollector::rethrow
void rethrow() const
Definition: ExceptionCollector.cc:30
edm::ExceptionCollector::ExceptionCollector
ExceptionCollector(std::string const &initialMessage)
Definition: ExceptionCollector.cc:23
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21