DOpE
dopeexceptionhandler.h
Go to the documentation of this file.
1 
24 #ifndef DOPE_EXCEPTION_HANDLER_H_
25 #define DOPE_EXCEPTION_HANDLER_H_
26 
27 #include "dopeexception.h"
28 //#include "outputhandler.h"
29 #include <string>
30 
31 namespace DOpE
32 {
33 //Predeclaration necessary
34  template<typename VECTOR> class DOpEOutputHandler;
36 template<typename VECTOR>
37  class DOpEExceptionHandler
38  {
39  public:
40  DOpEExceptionHandler(DOpEOutputHandler<VECTOR>* OutputHandler);
42 
48  void HandleException(DOpEException& e, std::string reporter = "undefined");
54  void HandleCriticalException(DOpEException& e, std::string reporter = "undefined");
55  protected:
56  DOpEOutputHandler<VECTOR>* GetOutputHandler() { return OutputHandler_; }
57  private:
58  DOpEOutputHandler<VECTOR>* OutputHandler_;
59  };
60 
61 }
62 #endif
DOpEExceptionHandler(DOpEOutputHandler< VECTOR > *OutputHandler)
Definition: dopeexceptionhandler.cc:39
Definition: optproblemcontainer.h:70
void HandleException(DOpEException &e, std::string reporter="undefined")
Definition: dopeexceptionhandler.cc:55
~DOpEExceptionHandler()
Definition: dopeexceptionhandler.cc:47
void HandleCriticalException(DOpEException &e, std::string reporter="undefined")
Definition: dopeexceptionhandler.cc:67
DOpEOutputHandler< VECTOR > * GetOutputHandler()
Definition: dopeexceptionhandler.h:56