highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ExceptionBase.hpp
Go to the documentation of this file.
1 #ifndef EXCEPTION_BASE_HPP
2 #define EXCEPTION_BASE_HPP
3 
4 #include <Poco/Exception.h>
5 #include <Poco/SharedPtr.h>
6 #include <vector>
7 
8 namespace HCE
9 {
10  namespace exception
11  {
12  class ExceptionBase : public Poco::Exception
13  {
14  protected:
15  std::vector<Poco::SharedPtr<ExceptionBase> > expVector;
16  public:
17  ExceptionBase(const std::string &what):Poco::Exception(what) {}
18  ExceptionBase(const ExceptionBase &exp);
19  void setInternalException(Poco::SharedPtr<ExceptionBase> &exception) throw();
20  virtual const char *what() const throw() {return Poco::Exception::message().c_str();}
21  virtual ~ExceptionBase() throw() {}
22  };
23  }
24 }
25 
26 #endif