Tapkee
stichwort/exceptions.hpp
Go to the documentation of this file.
1 
29 #ifndef STICHWORT_EXCEPTIONS_H_
30 #define STICHWORT_EXCEPTIONS_H_
31 
32 #include <stdexcept>
33 #include <string>
34 
35 namespace stichwort
36 {
37 
40 class missed_parameter_error : public std::logic_error
41 {
42  public:
44  explicit missed_parameter_error(const std::string& what_msg) :
45  std::logic_error(what_msg) {};
46 };
47 
50 class wrong_parameter_error : public std::logic_error
51 {
52  public:
54  explicit wrong_parameter_error(const std::string& what_msg) :
55  std::logic_error(what_msg) {};
56 };
57 
60 class wrong_parameter_type_error : public std::logic_error
61 {
62  public:
64  explicit wrong_parameter_type_error(const std::string& what_msg) :
65  std::logic_error(what_msg) {};
66 };
67 
69 class multiple_parameter_error : public std::runtime_error
70 {
71  public:
73  explicit multiple_parameter_error(const std::string& what_msg) :
74  std::runtime_error(what_msg) {};
75 };
76 
77 }
78 #endif
79 
wrong_parameter_type_error(const std::string &what_msg)
An exception type that is thrown in case of missed parameter, i.e. when some required parameter is no...
The namespace that contains implementations for the keywords.
STL namespace.
wrong_parameter_error(const std::string &what_msg)
An exception type that is thrown when some parameter is passed more than once.
multiple_parameter_error(const std::string &what_msg)
missed_parameter_error(const std::string &what_msg)
An exception type that is thrown in case if wrong parameter value is passed.
An exception type that is thrown in case if wrong parameter value is passed.