Class ConstraintViolationExceptionMapper
- java.lang.Object
-
- com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase<jakarta.validation.ConstraintViolationException>
-
- com.tietoevry.quarkus.resteasy.problem.validation.ConstraintViolationExceptionMapper
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ConstraintViolationException>
@Priority(5000) public final class ConstraintViolationExceptionMapper extends ExceptionMapperBase<jakarta.validation.ConstraintViolationException>
Exception Mapper for ConstraintViolationException from Bean Validation API. Hibernate Validator, among others throw these exceptions. Adds 'violations' field into `application/problem` responses.
-
-
Field Summary
-
Fields inherited from class com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase
postProcessorsRegistry
-
-
Constructor Summary
Constructors Constructor Description ConstraintViolationExceptionMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidconfigure(ProblemRuntimeConfig.ConstraintViolationMapperConfig config)protected HttpProblemtoProblem(jakarta.validation.ConstraintViolationException exception)-
Methods inherited from class com.tietoevry.quarkus.resteasy.problem.ExceptionMapperBase
toResponse
-
-
-
-
Method Detail
-
configure
public static void configure(ProblemRuntimeConfig.ConstraintViolationMapperConfig config)
-
toProblem
protected HttpProblem toProblem(jakarta.validation.ConstraintViolationException exception)
- Specified by:
toProblemin classExceptionMapperBase<jakarta.validation.ConstraintViolationException>
-
-