Search in sources :

Example 1 with LoggingSQLExceptionMapper

use of io.dropwizard.jdbi.jersey.LoggingSQLExceptionMapper in project dropwizard by dropwizard.

the class DBIExceptionsBundle method run.

@Override
public void run(Environment environment) {
    environment.jersey().register(new LoggingSQLExceptionMapper());
    environment.jersey().register(new LoggingDBIExceptionMapper());
}
Also used : LoggingDBIExceptionMapper(io.dropwizard.jdbi.jersey.LoggingDBIExceptionMapper) LoggingSQLExceptionMapper(io.dropwizard.jdbi.jersey.LoggingSQLExceptionMapper)

Aggregations

LoggingDBIExceptionMapper (io.dropwizard.jdbi.jersey.LoggingDBIExceptionMapper)1 LoggingSQLExceptionMapper (io.dropwizard.jdbi.jersey.LoggingSQLExceptionMapper)1