public class AddressPositionException extends AddressValueException
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.
Constructor and Description |
---|
AddressPositionException(AddressItem item,
int position) |
AddressPositionException(AddressItem item,
int position,
int otherPosition) |
AddressPositionException(int position) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AddressPositionException(int position)
public AddressPositionException(AddressItem item, int position)
public AddressPositionException(AddressItem item, int position, int otherPosition)