Package it.pagopa.swclient.mil
Class ConstraintViolationExceptionMapper
java.lang.Object
it.pagopa.swclient.mil.ConstraintViolationExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ConstraintViolationException>
@Provider
public class ConstraintViolationExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ConstraintViolationException>
Normalize the body of Constraint Violation Exception (400 BAD REQUEST) handled directly by Quarkus.
- Author:
- Antonio Tarricone
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
Internal comfort class to store error details. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(jakarta.validation.ConstraintViolationException e) Normalize the body of Constraint Violation Exception (400 BAD REQUEST) handled directly by Quarkus.
-
Constructor Details
-
ConstraintViolationExceptionMapper
public ConstraintViolationExceptionMapper()Default constructor.
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(jakarta.validation.ConstraintViolationException e) Normalize the body of Constraint Violation Exception (400 BAD REQUEST) handled directly by Quarkus.
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ConstraintViolationException>
- See Also:
-