From a743c853ed6f4bef5fd52782be867d6c092c7040 Mon Sep 17 00:00:00 2001 From: Scott Leberknight <174812+sleberknight@users.noreply.github.com> Date: Wed, 31 Jul 2024 20:40:41 +0000 Subject: [PATCH] Deprecate ApplicationErrorJdbcException for removal Closes #390 --- .../dropwizard/error/dao/ApplicationErrorJdbc.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java b/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java index 5bb5595..89d1b4c 100644 --- a/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java +++ b/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java @@ -21,6 +21,8 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.RandomStringUtils; import org.checkerframework.checker.nullness.qual.Nullable; +import org.kiwiproject.base.KiwiDeprecated; +import org.kiwiproject.base.KiwiDeprecated.Severity; import org.kiwiproject.dropwizard.error.model.ApplicationError; import org.kiwiproject.dropwizard.error.model.DataStoreType; @@ -231,7 +233,16 @@ public static ApplicationError mapFrom(ResultSet rs) throws SQLException { /** * Runtime exception wrapper around JDBC-related exceptions, e.g. {@link SQLException}. + * + * @deprecated replaced by UncheckedSQLException in kiwi 4.2.0 */ + @Deprecated(since = "2.2.0", forRemoval = true) + @KiwiDeprecated( + removeAt = "4.0.0", + replacedBy = "org.kiwiproject.jdbc.UncheckedSQLException", + reference = "https://github.com/kiwiproject/kiwi-test/issues/508", + usageSeverity = Severity.SEVERE + ) public static class ApplicationErrorJdbcException extends RuntimeException { public ApplicationErrorJdbcException(Throwable cause) { super(cause);