public class UniformInterfaceException
extends java.lang.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(java.lang.String message,
ClientResponse r)
Construct a uniform interface exception.
|
UniformInterfaceException(java.lang.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.
|
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(java.lang.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(java.lang.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 © 2016 Oracle Corporation. All Rights Reserved.