public class ConstraintViolationExceptionMapper extends Object implements ExceptionMapper<javax.validation.ConstraintViolationException>
ExceptionMapper for ConstraintViolationException.
If property is enabled then a list of ValidationError
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 |
|---|
ConstraintViolationExceptionMapper() |
public Response toResponse(javax.validation.ConstraintViolationException exception)
toResponse in interface ExceptionMapper<javax.validation.ConstraintViolationException>Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.