@Provider public class JsonParseExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
ExceptionMapper
to send down a "400 Bad Request"
in the event unparsable JSON is received.Constructor and Description |
---|
JsonParseExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
toResponse(com.fasterxml.jackson.core.JsonParseException exception) |
Copyright © 2014–2017 FasterXML. All rights reserved.