Class JerseyValidationExceptionMapper

  • 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 JerseyViolationExceptions 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response toResponse​(io.dropwizard.jersey.validation.JerseyViolationException e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JerseyValidationExceptionMapper

        public JerseyValidationExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(io.dropwizard.jersey.validation.JerseyViolationException e)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<io.dropwizard.jersey.validation.JerseyViolationException>