summaryrefslogtreecommitdiff
path: root/libdbpp/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/error.h')
-rw-r--r--libdbpp/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdbpp/error.h b/libdbpp/error.h
index ab55524..8e5c659 100644
--- a/libdbpp/error.h
+++ b/libdbpp/error.h
@@ -6,12 +6,17 @@
#include <visibility.h>
namespace DB {
+ /// Base class for database errors.
class DLL_PUBLIC Error : public virtual std::exception { };
+ /// Base class for database connectivity errors.
class DLL_PUBLIC ConnectionError : public Error {
public:
+ /// Default constructor, sets FailureTime to now.
ConnectionError();
+ /// Construct with a specific failure time.
ConnectionError(time_t);
+ /// The time of connectivity failure.
const time_t FailureTime;
};
}