Module inet.ipaddr
Package inet.ipaddr

Class AddressPositionException

All Implemented Interfaces:
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.

Author:
sfoley
See Also:
  • Constructor Details

    • AddressPositionException

      public AddressPositionException(int position)
    • AddressPositionException

      public AddressPositionException(AddressItem item, int position)
    • AddressPositionException

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