- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- inet.ipaddr.IncompatibleAddressException
-
- All Implemented Interfaces:
java.io.Serializable
public class IncompatibleAddressException extends java.lang.RuntimeException
Represents situations when an address, address section, address segment, or address string represents a valid type or format but that type does not match the required type or format for a given operation. All such occurrences occur only from subnet addresses and sections. These occurrences cannot happen with single-valued address objects. These occurrences cannot happen when using a standard prefix block subnet with standard masks. Examples include:- producing non-segmented hex, octal or base 85 strings from a subnet with a range that cannot be represented as a single range of values,
- masking multiple addresses in a way that produces a non-contiguous range of values in a segment,
- reversing values that are not reversible,
- producing strings that are single-segment ranges from subnets which cannot be represented that way,
- producing new formats for which the range of values are incompatible with the new segments (EUI-64, IPv4 inet_aton formats, IPv4 embedded within IPv6, dotted MAC addresses from standard mac addresses, reverse DNS strings), or
- using a subnet for an operation that requires a single address, such as with @link
IPAddress.toCanonicalHostName()
.
- Author:
- sfoley
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncompatibleAddressException(long lower, long upper, long prefixLengthOrMask, java.lang.String key)
IncompatibleAddressException(long lower, long upper, java.lang.String key)
IncompatibleAddressException(AddressItem one, int oneIndex, AddressItem two, int twoIndex, java.lang.String key)
IncompatibleAddressException(AddressItem one, int prefixLengthOrMask, java.lang.String key)
IncompatibleAddressException(AddressItem one, AddressItem two, java.lang.String key)
IncompatibleAddressException(AddressItem one, java.lang.String key)
IncompatibleAddressException(java.lang.CharSequence one, java.lang.String key)
IncompatibleAddressException(java.lang.String lower, java.lang.String upper, java.lang.String prefixLengthOrMask, java.lang.String key)
-
-
-
Constructor Detail
-
IncompatibleAddressException
public IncompatibleAddressException(AddressItem one, java.lang.String key)
-
IncompatibleAddressException
public IncompatibleAddressException(java.lang.CharSequence one, java.lang.String key)
-
IncompatibleAddressException
public IncompatibleAddressException(long lower, long upper, java.lang.String key)
-
IncompatibleAddressException
public IncompatibleAddressException(long lower, long upper, long prefixLengthOrMask, java.lang.String key)
-
IncompatibleAddressException
public IncompatibleAddressException(java.lang.String lower, java.lang.String upper, java.lang.String prefixLengthOrMask, java.lang.String key)
-
IncompatibleAddressException
public IncompatibleAddressException(AddressItem one, int prefixLengthOrMask, java.lang.String key)
-
IncompatibleAddressException
public IncompatibleAddressException(AddressItem one, int oneIndex, AddressItem two, int twoIndex, java.lang.String key)
-
IncompatibleAddressException
public IncompatibleAddressException(AddressItem one, AddressItem two, java.lang.String key)
-
-