Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.maxmind.minfraud.exception.HttpException
- All Implemented Interfaces:
Serializable
This class represents an HTTP transport error. This is not an error returned by the web service
itself. As such, it is a IOException instead of a MinFraudException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpException(String message, int httpStatus, URI uri) HttpException(String message, int httpStatus, URI uri, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpException
-
HttpException
-
-
Method Details
-
httpStatus
public int httpStatus()- Returns:
- the HTTP status of the query that caused the exception.
-
uri
- Returns:
- the URI queried.
-