Class JsonProcessingExceptionMapper
java.lang.Object
org.jboss.resteasy.plugins.providers.jackson.JsonProcessingExceptionMapper
- All Implemented Interfaces:
ExceptionMapper<JsonProcessingException>
@Provider
public class JsonProcessingExceptionMapper
extends Object
implements ExceptionMapper<JsonProcessingException>
- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoResponse(JsonProcessingException exception) Map an exception to aResponse.
-
Constructor Details
-
JsonProcessingExceptionMapper
public JsonProcessingExceptionMapper()
-
-
Method Details
-
toResponse
Description copied from interface:ExceptionMapperMap an exception to aResponse. Returningnullresults in aResponse.Status.NO_CONTENTresponse. Throwing a runtime exception results in aResponse.Status.INTERNAL_SERVER_ERRORresponse.- Specified by:
toResponsein interfaceExceptionMapper<JsonProcessingException>- Parameters:
exception- the exception to map to a response.- Returns:
- a response mapped from the supplied exception.
-