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 "boost/function.hpp"
25 
26 #include <memory>
27 #include <string>
28 
29 namespace cms {
30  class Exception;
31 }
32 
33 namespace edm {
35  public:
36  ExceptionCollector(std::string const& initialMessage);
38  bool hasThrown() const;
39  void rethrow() const;
40  void call(boost::function<void(void)>);
42 
43  private:
45  std::auto_ptr<cms::Exception> firstException_;
46  std::auto_ptr<cms::Exception> accumulatedExceptions_;
48  };
49 }
50 
51 #endif
void addException(cms::Exception const &exception)
void call(boost::function< void(void)>)
helper::RootFunctionHelper< F, args >::root_function function(F &f)
Definition: rootFunction.h:14
std::auto_ptr< cms::Exception > accumulatedExceptions_
ExceptionCollector(std::string const &initialMessage)
std::auto_ptr< cms::Exception > firstException_