public class HttpException extends RuntimeException
| Constructor and Description |
|---|
HttpException(int statusCode,
String statusLine,
String response) |
HttpException(String message) |
HttpException(String message,
Throwable cause) |
HttpException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
String |
getResponse()
The response payload from the remote.
|
int |
getResponseCode()
Deprecated.
Use
getStatusCode() |
int |
getStatusCode()
Gets the status code, may be -1 if unknown
|
String |
getStatusLine()
Gets the status line text, may be null if unknown.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpException(String message)
public HttpException(Throwable cause)
public int getStatusCode()
@Deprecated public int getResponseCode()
getStatusCode()public String getStatusLine()
public String getResponse()
Licenced under the Apache License, Version 2.0