public class UniformInterfaceException extends RuntimeException
UniformInterface
or
ClientResponse
when the status code of the HTTP response indicates
a response that is not expected.Constructor and Description |
---|
UniformInterfaceException(ClientResponse r)
Construct a uniform interface exception.
|
UniformInterfaceException(ClientResponse r,
boolean bufferResponseEntity)
Construct a uniform interface exception.
|
UniformInterfaceException(String message,
ClientResponse r)
Construct a uniform interface exception.
|
UniformInterfaceException(String message,
ClientResponse r,
boolean bufferResponseEntity)
Construct a uniform interface exception.
|
Modifier and Type | Method and Description |
---|---|
ClientResponse |
getResponse()
Get the client response assocatiated with the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UniformInterfaceException(ClientResponse r)
The client response entity will be buffered by calling
ClientResponse.bufferEntity()
.
r
- the client response. The message of the exception is set to
r.toString();public UniformInterfaceException(ClientResponse r, boolean bufferResponseEntity)
r
- the client response. The message of the exception is set to
r.toString();bufferResponseEntity
- if true buffer the client response entity by calling
ClientResponse.bufferEntity()
.public UniformInterfaceException(String message, ClientResponse r)
The client response entity will be buffered by calling
ClientResponse.bufferEntity()
.
message
- the message of the exception.r
- the client response.public UniformInterfaceException(String message, ClientResponse r, boolean bufferResponseEntity)
message
- the message of the exception.r
- the client response.bufferResponseEntity
- if true buffer the client response entity by calling
ClientResponse.bufferEntity()
.public ClientResponse getResponse()
Copyright © 2013 Oracle Corporation. All rights reserved.