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)>);
40  void addException(cms::Exception const& exception);
41 
42  private:
44  std::unique_ptr<cms::Exception> firstException_;
45  std::unique_ptr<cms::Exception> accumulatedExceptions_;
47  };
48 }
49 
50 #endif
std::unique_ptr< cms::Exception > firstException_
Namespace of DDCMS conversion namespace.
std::unique_ptr< cms::Exception > accumulatedExceptions_
HLT enums.