Top Description Fields Constructors Methods
jakarta.ws.rs.client

public Class ResponseProcessingException

extends ProcessingException
Class Inheritance
Imports
jakarta.ws.rs.ProcessingException, jakarta.ws.rs.core.Response

JAX-RS client-side runtime processing exception thrown to indicate that response processing has failed (e.g. in a filter chain or during message entity de-serialization). The exception contains the nested Response instance for which the runtime response processing failed.
Author
Marek Potociar (marek.potociar at oracle.com)
Since
2.0

Field Summary

Modifier and TypeField and Description
private final Response
response

The response instance for which the processing failed.

private static final long

Constructor Summary

AccessConstructor and Description
public
ResponseProcessingException(final Response
the response instance for which the processing failed.
response
,
final Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs a new JAX-RS runtime response processing exception for a specific response with the specified cause and a detail message of (cause==null ?

public
ResponseProcessingException(final Response
the response instance for which the processing failed.
response
,
final String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
final Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs a new JAX-RS runtime response processing exception with the specified detail message and cause.

public
ResponseProcessingException(final Response
the response instance for which the processing failed.
response
,
final String
the detail message (which is saved for later retrieval by the getMessage() method).
message
)

Constructs a new JAX-RS runtime processing exception with the specified detail message.

Method Summary

Modifier and TypeMethod and Description
public Response

Returns:

the HTTP response.
getResponse
()

Get the HTTP response for which the processing has failed.

Field Detail

responseback to summary
private final Response response

The response instance for which the processing failed.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.ws.rs.ProcessingException.serialVersionUID.

Constructor Detail

ResponseProcessingExceptionback to summary
public ResponseProcessingException(final Response response, final Throwable cause)

Constructs a new JAX-RS runtime response processing exception for a specific response with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.

Parameters
response:Response

the response instance for which the processing failed.

cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

ResponseProcessingExceptionback to summary
public ResponseProcessingException(final Response response, final String message, final Throwable cause)

Constructs a new JAX-RS runtime response processing exception with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.
Parameters
response:Response

the response instance for which the processing failed.

message:String

the detail message (which is saved for later retrieval by the getMessage() method).

cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

ResponseProcessingExceptionback to summary
public ResponseProcessingException(final Response response, final String message)

Constructs a new JAX-RS runtime processing exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

Parameters
response:Response

the response instance for which the processing failed.

message:String

the detail message (which is saved for later retrieval by the getMessage() method).

Method Detail

getResponseback to summary
public Response getResponse()

Get the HTTP response for which the processing has failed.

Returns:Response

the HTTP response.