Class InvalidNetworkException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.maxmind.db.InvalidNetworkException
All Implemented Interfaces:
Serializable

public class InvalidNetworkException extends Exception
This is a custom exception that is thrown when the user attempts to use an IPv6 address in an IPv4-only database.
See Also:
  • Constructor Details

    • InvalidNetworkException

      public InvalidNetworkException(InetAddress ip)
      Parameters:
      ip - the IP address that was used