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() |
getUri
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ClientHttpResponseStatusCodeException(String serviceId, org.springframework.http.client.ClientHttpResponse response, byte[] body) throws IOException
serviceId
- The service ID.response
- The response object.body
- The response body.IOException
- Thrown if the ClientHttpResponse
response code cannot
be retrieved.public org.springframework.http.client.ClientHttpResponse getResponse()
getResponse
in class RetryableStatusCodeException
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.