Class GeoIp2Exception

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.maxmind.geoip2.exception.GeoIp2Exception
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AddressNotFoundException, AuthenticationException, InvalidRequestException, OutOfQueriesException, PermissionRequiredException

public class GeoIp2Exception extends Exception
This class represents a generic GeoIP2 error. All other exceptions thrown by the GeoIP2 API subclass this exception
See Also:
  • Constructor Details

    • GeoIp2Exception

      public GeoIp2Exception(String message)
      Parameters:
      message - A message describing the reason why the exception was thrown.
    • GeoIp2Exception

      public GeoIp2Exception(String message, Throwable cause)
      Parameters:
      message - A message describing the reason why the exception was thrown.
      cause - The cause of the exception.