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 idresponse
- The response objectIOException
- Thrown if the ClientHttpResponse
response code cant be retrievedpublic org.springframework.http.client.ClientHttpResponse getResponse()
getResponse
in class RetryableStatusCodeException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.