- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- inet.ipaddr.AddressValueException
-
- inet.ipaddr.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.
- Author:
- sfoley
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddressPositionException(int position)
AddressPositionException(AddressItem item, int position)
AddressPositionException(AddressItem item, int position, int otherPosition)
-
-
-
Constructor Detail
-
AddressPositionException
public AddressPositionException(int position)
-
AddressPositionException
public AddressPositionException(AddressItem item, int position)
-
AddressPositionException
public AddressPositionException(AddressItem item, int position, int otherPosition)
-
-