public class HttpException
extends java.io.IOException
HttpException
exception class is thrown if an
HTTP communication error is detected. The exception supports the
regular message string and also a method to extract the integer
response code.Constructor and Description |
---|
HttpException(int response_code,
java.lang.String message)
Create a new
HttpException exception with the specified
integer resonse code and message string. |
Modifier and Type | Method and Description |
---|---|
int |
getResponseCode()
Return the HTTP response code that caused the exception.
|