Agroeye  1.0
DatabaseErrors.h
Go to the documentation of this file.
1 #ifndef DATABASEERRORS_H
2 #define DATABASEERRORS_H
3 
4 #include <stdexcept>
5 #include <string>
6 
7 namespace agroeye {
8 namespace errors {
9 
14 class SpatialiteError : public std::runtime_error {
15 public:
21  SpatialiteError(std::string msg) : std::runtime_error(msg) {};
22 
27  std::runtime_error("Error in database!") {};
28 };
29 
34 class TableError : public std::runtime_error {
35 public:
41  TableError(std::string msg) : std::runtime_error(msg) {};
42 
47  std::runtime_error("Error in table!") {};
48 };
49 
50 
59 class StatementError : public std::runtime_error {
60 public:
66  StatementError(std::string msg) : std::runtime_error(msg) {};
67 
72  std::runtime_error("Error in statement!") {};
73 };
74 
75 } // namespace errors
76 } // namespace agoroeye
77 
78 
79 #endif
Exceptions associated with agroeye::handlers::DbTable.
Definition: DatabaseErrors.h:34
Definition: ContainerMath.h:11
Exceptions associated with agroeye::handlers::Spatialite.
Definition: DatabaseErrors.h:14
StatementError()
Exception with custom information.
Definition: DatabaseErrors.h:71
Exceptions associated with Statements.
Definition: DatabaseErrors.h:59
TableError(std::string msg)
Exception with custom information.
Definition: DatabaseErrors.h:41
SpatialiteError(std::string msg)
Exception with custom information.
Definition: DatabaseErrors.h:21
StatementError(std::string msg)
Exception with custom information.
Definition: DatabaseErrors.h:66
TableError()
Exception with default information.
Definition: DatabaseErrors.h:46
SpatialiteError()
Exception with default information.
Definition: DatabaseErrors.h:26