Class JsonParseExceptionMapper
java.lang.Object
org.fcrepo.http.commons.exceptionhandlers.JsonParseExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>,ExceptionDebugLogging
@Provider
public class JsonParseExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>, ExceptionDebugLogging
If an injected JSON resource fails to parse, return an HTTP 400 Bad Request.
- Since:
- 2014-05-21
- Author:
- Esme Cowles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsetoResponse(com.fasterxml.jackson.core.JsonParseException e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
Constructor Details
-
JsonParseExceptionMapper
public JsonParseExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
-