Package io.dropwizard.jdbi3.jersey
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.-
Field Summary
Fields inherited from class io.dropwizard.jersey.errors.LoggingExceptionMapper
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlogException(long id, org.jdbi.v3.core.JdbiException exception) Methods inherited from class io.dropwizard.jersey.errors.LoggingExceptionMapper
formatErrorMessage, formatLogMessage, logException, toResponse
-
Constructor Details
-
LoggingJdbiExceptionMapper
public LoggingJdbiExceptionMapper()- Since:
- 2.0
-
-
Method Details
-
logException
protected void logException(long id, org.jdbi.v3.core.JdbiException exception) - Overrides:
logExceptionin classLoggingExceptionMapper<org.jdbi.v3.core.JdbiException>
-