Module inet.ipaddr
Package inet.ipaddr

Class AddressValueException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AddressPositionException, InconsistentPrefixException, PrefixLenException

public class AddressValueException extends RuntimeException
Thrown when an address or address component would be too large or small, when a prefix length is too large or small, or when prefixes across segments are inconsistent.

These exceptions are thrown when constructing new address components. They are not thrown when parsing strings to construct new address components, in which case AddressStringException is used instead.

Author:
sfoley
See Also:
  • Constructor Details

    • AddressValueException

      public AddressValueException(long value)
    • AddressValueException

      public AddressValueException(String key, long value)
    • AddressValueException

      public AddressValueException(BigInteger value)
    • AddressValueException

      public AddressValueException(AddressItem one, AddressItem two, int count)
    • AddressValueException

      public AddressValueException(AddressItem one, AddressItem two)
    • AddressValueException

      public AddressValueException(AddressItem one, String key)