CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_ptr<cms::Exception> firstException_;
45  std::auto_ptr<cms::Exception> accumulatedExceptions_;
47  };
48 }
49 
50 #endif
void addException(cms::Exception const &exception)
helper::RootFunctionHelper< F, args >::root_function function(F &f)
Definition: rootFunction.h:14
std::auto_ptr< cms::Exception > accumulatedExceptions_
ExceptionCollector(std::string const &initialMessage)
void call(std::function< void(void)>)
std::auto_ptr< cms::Exception > firstException_