Class ValidationExceptionMapper
java.lang.Object
ch.tocco.nice2.rest.entity.impl.error.ValidationExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<ValidationException>
@Component
public class ValidationExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<ValidationException>
This exception mapper is registered on the
ValidationException
.
The exception is mapped onto a 400 BAD REQUEST response.-
Constructor Summary
ConstructorDescriptionValidationExceptionMapper
(ValidationResultConverter validationResultConverter) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(ValidationException exception)
-
Constructor Details
-
ValidationExceptionMapper
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<ValidationException>
-