Package org.zalando.riptide
Class HttpResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.client.RestClientException
org.zalando.riptide.HttpResponseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnexpectedResponseException
@API(status=STABLE)
public abstract class HttpResponseException
extends org.springframework.web.client.RestClientException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseException(String message, org.springframework.http.client.ClientHttpResponse response) -
Method Summary
Modifier and TypeMethodDescriptionintbyte[]org.springframework.http.HttpHeadersMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpResponseException
public HttpResponseException(String message, org.springframework.http.client.ClientHttpResponse response) throws IOException - Throws:
IOException
-
-
Method Details
-
getRawStatusCode
public int getRawStatusCode() -
getStatusText
-
getResponseHeaders
public org.springframework.http.HttpHeaders getResponseHeaders() -
getResponseBody
public byte[] getResponseBody()
-