Package com.maxmind.geoip2.exception
Class InvalidRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.maxmind.geoip2.exception.GeoIp2Exception
-
- com.maxmind.geoip2.exception.InvalidRequestException
-
- All Implemented Interfaces:
Serializable
public final class InvalidRequestException extends GeoIp2Exception
This class represents a non-specific error returned by MaxMind's GeoIP2 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidRequestException(String message, String code, int httpStatus, URL url, Throwable e)
InvalidRequestException(String message, String code, URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
URL
getUrl()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidRequestException
public InvalidRequestException(String message, String code, URL url)
- Parameters:
message
- A message explaining the cause of the error.code
- The error code returned by the web service.url
- The URL queried.
-
InvalidRequestException
public InvalidRequestException(String message, String code, int httpStatus, URL url, Throwable e)
- 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.url
- The URL queried.e
- The cause of the exception.
-
-