public final class ValidationExceptionMapper extends Object implements ExceptionMapper<javax.validation.ValidationException>
ExceptionMapper for ValidationException.
If property is enabled then a list of ValidationErrorData
instances is sent in Response as well (in addition to HTTP 400/500 status code). Supported media types are:
application/json/application/xml (in appropriate provider is registered on server) or
text/html/text/plain (via custom ValidationErrorMessageBodyWriter).| Constructor and Description |
|---|
ValidationExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Response |
toResponse(javax.validation.ValidationException exception) |
public Response toResponse(javax.validation.ValidationException exception)
toResponse in interface ExceptionMapper<javax.validation.ValidationException>Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.