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

public Class ResponseProcessingException

extends ProcessingException
Class Inheritance
Imports
javax.ws.rs.ProcessingException, javax.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
private static final long

Constructor Summary

AccessConstructor and Description
public
ResponseProcessingException(Response
the response instance for which the processing failed.
response
,
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(Response
the response instance for which the processing failed.
response
,
String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
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(Response
the response instance for which the processing failed.
response
,
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
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.ws.rs.ProcessingException.serialVersionUID.

Constructor Detail

ResponseProcessingExceptionback to summary
public ResponseProcessingException(Response response, 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(Response response, String message, 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(Response response, 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.