diff options
Diffstat (limited to 'libdbpp/error.h')
-rw-r--r-- | libdbpp/error.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libdbpp/error.h b/libdbpp/error.h new file mode 100644 index 0000000..3da6316 --- /dev/null +++ b/libdbpp/error.h @@ -0,0 +1,18 @@ +#ifndef DB_ERROR_H +#define DB_ERROR_H + +#include <stdlib.h> +#include <exception> + +namespace DB { + class Error : public virtual std::exception { }; + class ConnectionError : public Error { + public: + ConnectionError(); + ConnectionError(time_t); + + const time_t FailureTime; + }; +} + +#endif |