Class InvalidRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.maxmind.minfraud.exception.MinFraudException
com.maxmind.minfraud.exception.InvalidRequestException
- All Implemented Interfaces:
Serializable
This class represents a non-specific error returned by MaxMind's minFraud web service. This
occurs when the web service is up and responding to requests, but the request sent was invalid in
some way.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidRequestException(String message, String code, int httpStatus, URI uri, Throwable e) InvalidRequestException(String message, String code, URI uri) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidRequestException
-
InvalidRequestException
- Parameters:
message- A message explaining the cause of the error.code- The error code returned by the web service.httpStatus- The HTTP status of the response.uri- The URL queried.e- The cause of the exception.
-
-
Method Details
-
code
- Returns:
- The error code returned by the MaxMind web service.
-
httpStatus
public final int httpStatus()- Returns:
- The integer HTTP status returned by the MaxMind web service. Will be 0 if it was not set at throw time.
-
uri
- Returns:
- the URI queried.
-