summaryrefslogtreecommitdiffstats
path: root/src/lib/database/database_connection.h
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2023-01-12 17:52:15 +0100
committerMarcin Siodelski <marcin@isc.org>2023-01-17 11:26:51 +0100
commit0070b092a9e99acd0073711a08287df4382d6774 (patch)
tree5a44a38277ba0f1a18d769bf99078a8a9fdf20b9 /src/lib/database/database_connection.h
parent[#2688] Added tcp_user_timeout parameter (diff)
downloadkea-0070b092a9e99acd0073711a08287df4382d6774.tar.xz
kea-0070b092a9e99acd0073711a08287df4382d6774.zip
[#2688] New tests for invalid port number
Diffstat (limited to 'src/lib/database/database_connection.h')
-rw-r--r--src/lib/database/database_connection.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/database/database_connection.h b/src/lib/database/database_connection.h
index 881bfbac3d..f28f326745 100644
--- a/src/lib/database/database_connection.h
+++ b/src/lib/database/database_connection.h
@@ -68,6 +68,15 @@ public:
isc::Exception(file, line, what) {}
};
+/// @brief Invalid port number
+///
+/// Thrown when the port number specified for the database connection is invalid.
+class DbInvalidPort : public Exception {
+public:
+ DbInvalidPort(const char* file, size_t line, const char* what) :
+ isc::Exception(file, line, what) {}
+};
+
/// @brief Invalid 'readonly' value specification.
///
/// Thrown when the value of the 'readonly' boolean parameter is invalid.