Top Description Constructors Methods
tools.jackson.jakarta.rs.base

public Class StreamReadExceptionMapper

extends Object
implements ExceptionMapper<StreamReadException>
Class Inheritance
All Implemented Interfaces
jakarta.ws.rs.ext.ExceptionMapper
Imports
tools.jackson.core.exc.StreamReadException, jakarta.ws.rs.core.Response, jakarta.ws.rs.ext.ExceptionMapper

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Response
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StreamReadExceptionMapperback to summary
public StreamReadExceptionMapper()

Method Detail

toResponseback to summary
public Response toResponse(StreamReadException exception)

Implements jakarta.ws.rs.ext.ExceptionMapper.toResponse.

Doc from jakarta.ws.rs.ext.ExceptionMapper.toResponse.

Map an exception to a jakarta.ws.rs.core.Response. Returning null results in a jakarta.ws.rs.core.Response.Status#NO_CONTENT response. Throwing a runtime exception results in a jakarta.ws.rs.core.Response.Status#INTERNAL_SERVER_ERROR response.

Annotations
@Override