diff options
Diffstat (limited to 'src/lib/database')
-rw-r--r-- | src/lib/database/database_connection.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/database/database_connection.h b/src/lib/database/database_connection.h index 3f36e963e4..f85d8a0b56 100644 --- a/src/lib/database/database_connection.h +++ b/src/lib/database/database_connection.h @@ -93,6 +93,14 @@ public: isc::Exception(file, line, what) {} }; +/// @brief Thrown when an initialization of the schema failed. +class SchemaInitializationFailed: public Exception { +public: + SchemaInitializationFailed(const char* file, size_t line, const char* what) : + isc::Exception(file, line, what) {} +}; + + /// @brief Defines a callback prototype for propagating events upward typedef std::function<bool (util::ReconnectCtlPtr db_reconnect_ctl)> DbCallback; |