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 io.dropwizard.jersey.errors.LoggingExceptionMapper<org.jdbi.v3.core.JdbiException>
Iterates through a JdbiException's cause if it's a SQLException otherwise log as normal.
  • Field Summary

    Fields inherited from class io.dropwizard.jersey.errors.LoggingExceptionMapper

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    logException(long id, org.jdbi.v3.core.JdbiException exception)
     

    Methods inherited from class io.dropwizard.jersey.errors.LoggingExceptionMapper

    formatErrorMessage, formatLogMessage, logException, toResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 io.dropwizard.jersey.errors.LoggingExceptionMapper<org.jdbi.v3.core.JdbiException>