inet.ipaddr

Class AddressPositionException

  • All Implemented Interfaces:
    java.io.Serializable


    public class AddressPositionException
    extends AddressValueException
    IPv6 and MAC address sections are not position-independent, which means they have a designated location within a full address.

    This exception is thrown in places where the designated position is invalid, such as constructing an address from a section not located at position 0, which is the default position for sections.

    However, in most operations such as replace and append, the position of the replacement or appended section is ignored and so this exception does not apply.

    IPv4 sections are position independent, so this exception does not apply to IPv4.

    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AddressPositionException

        public AddressPositionException(int position)
      • AddressPositionException

        public AddressPositionException(AddressItem item,
                                        int position)
      • AddressPositionException

        public AddressPositionException(AddressItem item,
                                        int position,
                                        int otherPosition)