Class JerseyValidationExceptionMapper
java.lang.Object
org.sdase.commons.server.jackson.errors.JerseyValidationExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<io.dropwizard.jersey.validation.JerseyViolationException>
@Provider
public class JerseyValidationExceptionMapper
extends Object
implements jakarta.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-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(io.dropwizard.jersey.validation.JerseyViolationException e)
-
Constructor Details
-
JerseyValidationExceptionMapper
public JerseyValidationExceptionMapper()
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(io.dropwizard.jersey.validation.JerseyViolationException e) - Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<io.dropwizard.jersey.validation.JerseyViolationException>
-