inet.ipaddr

Class AddressValueException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • inet.ipaddr.AddressValueException
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AddressPositionException, InconsistentPrefixException, PrefixLenException


    public class AddressValueException
    extends java.lang.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.

    See Also:
    Serialized Form
    • Constructor Detail

      • AddressValueException

        public AddressValueException(long value)
      • AddressValueException

        public AddressValueException(java.lang.String key,
                                     long value)
      • AddressValueException

        public AddressValueException(java.math.BigInteger value)
      • AddressValueException

        public AddressValueException(AddressItem one,
                                     java.lang.String key)