Class LoggingSQLExceptionMapper

java.lang.Object
io.dropwizard.jersey.errors.LoggingExceptionMapper<SQLException>
io.dropwizard.jdbi3.jersey.LoggingSQLExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<SQLException>

@Provider public class LoggingSQLExceptionMapper extends io.dropwizard.jersey.errors.LoggingExceptionMapper<SQLException>
Iterates through SQLExceptions to log all causes
  • 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, SQLException 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

    • LoggingSQLExceptionMapper

      public LoggingSQLExceptionMapper()
      Since:
      2.0
  • Method Details

    • logException

      protected void logException(long id, SQLException exception)
      Overrides:
      logException in class io.dropwizard.jersey.errors.LoggingExceptionMapper<SQLException>