From 62b73bafe1930d748c2fb84298b609a187ee5fb1 Mon Sep 17 00:00:00 2001 From: Nicholas Kalar Date: Sun, 10 Aug 2025 16:23:45 -0400 Subject: [PATCH] Added custom exceptions --- src/main/kotlin/exception/DbElementInsertionException.kt | 4 ++++ src/main/kotlin/exception/DbElementNotFoundException.kt | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 src/main/kotlin/exception/DbElementInsertionException.kt create mode 100644 src/main/kotlin/exception/DbElementNotFoundException.kt diff --git a/src/main/kotlin/exception/DbElementInsertionException.kt b/src/main/kotlin/exception/DbElementInsertionException.kt new file mode 100644 index 0000000..17dd8e1 --- /dev/null +++ b/src/main/kotlin/exception/DbElementInsertionException.kt @@ -0,0 +1,4 @@ +package codes.kalar.exception + +class DbElementInsertionException(message: String? = null, throwable: Throwable? = null ) : Throwable(message, throwable) { +} \ No newline at end of file diff --git a/src/main/kotlin/exception/DbElementNotFoundException.kt b/src/main/kotlin/exception/DbElementNotFoundException.kt new file mode 100644 index 0000000..3228156 --- /dev/null +++ b/src/main/kotlin/exception/DbElementNotFoundException.kt @@ -0,0 +1,4 @@ +package codes.kalar.exception + +class DbElementNotFoundException(message: String? = null, throwable: Throwable? = null ) : Throwable(message, throwable) { +} \ No newline at end of file