- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<io.dropwizard.jersey.validation.JerseyViolationException>
@Provider
public class JerseyValidationExceptionMapper
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<io.dropwizard.jersey.validation.JerseyViolationException>
Maps JerseyViolationException
s to the error structure defined within the rest guidelines.
For each ConstraintViolation
, one ApiInvalidParam
entry is
generated. As error code, the validation name is used as error code