public class HttpException extends RuntimeException
Constructor and Description |
---|
HttpException(int responseCode,
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()
Gets the response code, may be -1 if unknown
|
String |
getStatusLine()
Gets the response code, may be null if unknown
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpException(String message)
public HttpException(Throwable cause)
public int getResponseCode()
public String getStatusLine()
public String getResponse()
Licenced under the Apache License, Version 2.0