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:
javax.ws.rs.ext.ExceptionMapper<org.jdbi.v3.core.JdbiException>
@Provider public class LoggingJdbiExceptionMapper extends LoggingExceptionMapper<org.jdbi.v3.core.JdbiException>
Iterates through aJdbiException
's cause if it's aSQLException
otherwise log as normal.
-
-
Field Summary
-
Fields inherited from class io.dropwizard.jersey.errors.LoggingExceptionMapper
logger
-
-
Constructor Summary
Constructors Constructor Description LoggingJdbiExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
logException
protected void logException(long id, org.jdbi.v3.core.JdbiException exception)
- Overrides:
logException
in classLoggingExceptionMapper<org.jdbi.v3.core.JdbiException>
-
-