0

The dropwizard manual suggests to implement a javax.ws.rs.ext.ExceptionMapper in order to have more control of the generated responses for error cases. However, it does not tell me which maven dependency to use. The central maven repository yields dozens of result pages for this class. So which artifact should I choose?

Bastian
  • 4,638
  • 6
  • 36
  • 55

1 Answers1

0

The ExceptionMapper interface should already be pulled in when you reference dropwizard-core. You shouldn't need to add any other dependencies.

dropwizard-core depends on dropwizard-jersey which depends on jersey-server which depends on jersey-common which depends on javax.ws.rs-api which has the ExceptionMapper interface.

condit
  • 10,852
  • 2
  • 41
  • 60