org.codehaus.jackson.jaxrs

## Class JsonParseExceptionMapper

- java.lang.Object
- - org.codehaus.jackson.jaxrs.JsonParseExceptionMapper

- All Implemented Interfaces:
    ExceptionMapper<JsonParseException>

      @Provider
      public class JsonParseExceptionMapper
      extends Object
      implements ExceptionMapper<JsonParseException>

  Implementation of `ExceptionMapper` to send down a "400 Bad Request" in the event unparsable JSON is received.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonParseExceptionMapper()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Response` | `toResponse(JsonParseException exception)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JsonParseExceptionMapper

          public JsonParseExceptionMapper()

  - ### Method Detail

    - #### toResponse

          public Response toResponse(JsonParseException exception)

      Specified by:
        `toResponse` in interface `ExceptionMapper<JsonParseException>`