@Provider public class JsonParseExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<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(JsonParseException exception) |
public javax.ws.rs.core.Response toResponse(JsonParseException exception)
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<JsonParseException>