public class HttpException extends IOException
Constructor and Description |
---|
HttpException(String string)
Deprecated.
please use the version that provides a status code.
|
HttpException(String string, int statusCode)
Creates a new HttpException with a status code
|
Modifier and Type | Method and Description |
---|---|
int |
getStatusCode()
Returns the HttpStatusCode which describes the error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated public HttpException(String string)
string
- a string describing the issuepublic HttpException(String string, int statusCode)
string
- a string describing the issuestatusCode
- the status code of the error