Class HttpClientResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ru.tinkoff.kora.http.client.common.HttpClientException
ru.tinkoff.kora.http.client.common.HttpClientResponseException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpClientResponseException(int code, ru.tinkoff.kora.http.common.header.HttpHeaders headers, byte[] bytes) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CompletionStage<T>fromResponse(HttpClientResponse response) fromResponseFuture(HttpClientResponse response) byte[]getBytes()intgetCode()ru.tinkoff.kora.http.common.header.HttpHeadersMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpClientResponseException
public HttpClientResponseException(int code, ru.tinkoff.kora.http.common.header.HttpHeaders headers, byte[] bytes)
-
-
Method Details
-
fromResponse
-
fromResponseFuture
public static CompletableFuture<HttpClientResponseException> fromResponseFuture(HttpClientResponse response) -
getCode
public int getCode() -
getHeaders
public ru.tinkoff.kora.http.common.header.HttpHeaders getHeaders() -
getBytes
public byte[] getBytes()
-