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
  • 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 interface jakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ConstraintViolationException>
      See Also:
      • ExceptionMapper.toResponse(Throwable)