HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Exceptions.hpp
Go to the documentation of this file.
1 
15 #ifndef EXCEPTIONS_HPP_
16 #define EXCEPTIONS_HPP_
17 
18 #include <exception>
19 #include <string>
20 
21 namespace HCE{
22 namespace reduce{
23 
24 class NotFoundByKeyException: public std::exception
25 {
26  public:
27  NotFoundByKeyException(const std::string& _what):_what_ (_what){}
28  virtual ~NotFoundByKeyException() throw(){}
29  virtual const char *what() const throw() {return _what_.c_str();}
30  private:
31  std::string _what_;
32 };
33 
34 
35 class WrongJSONStructureException: public std::exception
36 {
37  public:
38  WrongJSONStructureException(const std::string& _what):_what_ (_what){}
39  virtual ~WrongJSONStructureException() throw(){}
40  virtual const char *what() const throw() {return _what_.c_str();}
41  private:
42  std::string _what_;
43 };
44 
45 }
46 }
47 
48 #endif