From 8e2d02205c5aab819ef03b6e7c9fa15495a55821 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Mon, 20 Nov 2023 12:21:45 +0200 Subject: [#3025] automatic init of mysql schema --- src/lib/database/database_connection.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/database/database_connection.h') 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 DbCallback; -- cgit v1.2.3