Class 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 Detail

      • LoggingJdbiExceptionMapper

        public LoggingJdbiExceptionMapper()
        Since:
        2.0
    • Method Detail

      • logException

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