public class HttpClientException extends AbortedException
| Constructor and Description |
|---|
HttpClientException(String uri,
HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
fillInStackTrace() |
HttpHeaders |
headers()
Return the HTTP response headers
|
HttpResponse |
message()
Return the netty HTTP response message
Note: When the message is of type
FullHttpResponse then ReferenceCounted.release()
has to be invoked after consuming the response. |
HttpResponseStatus |
status()
Return the HTTP status
|
String |
uri()
Return the original request uri
|
isConnectionResetaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpClientException(String uri, HttpResponse response)
public HttpResponseStatus status()
public HttpHeaders headers()
public HttpResponse message()
FullHttpResponse then ReferenceCounted.release()
has to be invoked after consuming the response.public String uri()
public Throwable fillInStackTrace()
fillInStackTrace in class AbortedException