Class LoggingJdbiExceptionMapper

java.lang.Object
io.dropwizard.jersey.errors.LoggingExceptionMapper<org.jdbi.v3.core.JdbiException>
io.dropwizard.jdbi3.jersey.LoggingJdbiExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<org.jdbi.v3.core.JdbiException>

@Provider public class LoggingJdbiExceptionMapper extends LoggingExceptionMapper<org.jdbi.v3.core.JdbiException>
Iterates through a JdbiException's cause if it's a SQLException otherwise log as normal.
  • Constructor Details

    • LoggingJdbiExceptionMapper

      public LoggingJdbiExceptionMapper()
      Since:
      2.0
  • Method Details

    • logException

      protected void logException(long id, org.jdbi.v3.core.JdbiException exception)
      Overrides:
      logException in class LoggingExceptionMapper<org.jdbi.v3.core.JdbiException>