public final class ValidationExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<jakarta.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 |
|---|---|
jakarta.ws.rs.core.Response |
toResponse(jakarta.validation.ValidationException exception) |
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.