public class HttpResponseException extends IOException
| Constructor and Description |
|---|
HttpResponseException(URL url,
int statusCode,
String statusMessage,
String content,
IOException cause)
Creates a HttpClientConnectException based on original
ConnectException. |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
int |
getStatusCode() |
String |
getStatusMessage() |
URL |
getUrl() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpResponseException(@Nonnull URL url, int statusCode, @Nonnull String statusMessage, @Nullable String content, @Nullable IOException cause)
ConnectException.url - The URL tried to connect to.statusCode - The response code.statusMessage - The response status message.content - The response body, if any.cause - The cause of the exception, if any.Copyright © 2015–2020 morimekta.net. All rights reserved.