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
void addException(cms::Exception const &exception)
std::unique_ptr< cms::Exception > firstException_
Namespace of DDCMS conversion namespace.
std::unique_ptr< cms::Exception > accumulatedExceptions_
ExceptionCollector(std::string const &initialMessage)
HLT enums.
void call(std::function< void(void)>)