public class ClientHttpResponseStatusCodeException extends RetryableStatusCodeException
RetryableStatusCodeException that captures a ClientHttpResponse.| Constructor and Description |
|---|
ClientHttpResponseStatusCodeException(String serviceId,
org.springframework.http.client.ClientHttpResponse response,
byte[] body)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.client.ClientHttpResponse |
getResponse() |
getUriaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ClientHttpResponseStatusCodeException(String serviceId, org.springframework.http.client.ClientHttpResponse response, byte[] body) throws IOException
serviceId - The service ID.response - The response object.IOException - Thrown if the ClientHttpResponse response code cannot be retrieved.public org.springframework.http.client.ClientHttpResponse getResponse()
getResponse in class RetryableStatusCodeExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.