Agroeye  1.0
GeneralErrors.h
Go to the documentation of this file.
1 #ifndef GENERALERRORS_H
2 #define GENERALERRORS_H
3 
4 #include <stdexcept>
5 
6 namespace agroeye {
7 namespace errors {
8 
14 class EmptyList : public std::runtime_error {
15 public:
21  EmptyList(std::string msg) : std::runtime_error(msg) {};
22 
26  EmptyList() :
27  std::runtime_error("Empty list given!") {};
28 };
29 
35 class IncorrectValue : public std::runtime_error {
36 public:
42  IncorrectValue(std::string msg) : std::runtime_error(msg) {};
43 
48  std::runtime_error("Bad value appeard!") {};
49 };
50 
51 } // namespace errors
52 } // namespace agroeye
53 
54 #endif
Generel exceptions describind the incorrectness of value.
Definition: GeneralErrors.h:35
EmptyList()
Exception with default information.
Definition: GeneralErrors.h:26
Definition: ContainerMath.h:11
IncorrectValue(std::string msg)
Exception with custom information.
Definition: GeneralErrors.h:42
IncorrectValue()
Exception with default information.
Definition: GeneralErrors.h:47
EmptyList(std::string msg)
Exception with custom information.
Definition: GeneralErrors.h:21
Generel exceptions describing empty container.
Definition: GeneralErrors.h:14