java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.minidns.dnsname.InvalidDnsNameException
org.minidns.dnsname.InvalidDnsNameException.DNSNameTooLongException
- All Implemented Interfaces:
Serializable
- Enclosing class:
InvalidDnsNameException
Exception thrown when a DNS name exceeds the maximum allowed length.
DNS names are limited to 255 octets according to DNS specifications.
DNS names are limited to 255 octets according to DNS specifications.
- See Also:
Nested Class Summary
Nested classes/interfaces inherited from class InvalidDnsNameException
InvalidDnsNameException.DNSNameTooLongException, InvalidDnsNameException.LabelTooLongExceptionModifier and TypeClassDescriptionstatic classException thrown when a DNS name exceeds the maximum allowed length.
DNS names are limited to 255 octets according to DNS specifications.static classException thrown when a DNS label exceeds the maximum allowed length.
DNS labels are limited to 63 characters according to DNS specifications.Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The byte representation of the DNS name that exceeds the maximum lengthprivate static final longSerial version UID for serializationFields inherited from class InvalidDnsNameException
aceConstructor Summary
ConstructorsConstructorDescriptionDNSNameTooLongException(String ace, byte[] bytes) Creates a new DNSNameTooLongException.Method Summary
All MethodsModifier and TypeMethodDescriptionThe ACE-encoded name and its octet length against the maximum name length.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Field Details
serialVersionUID
private static final long serialVersionUIDSerial version UID for serialization- See Also:
bytes
private final byte[] bytesThe byte representation of the DNS name that exceeds the maximum length
Constructor Details
DNSNameTooLongException
Creates a new DNSNameTooLongException.- Parameters:
ace- the ASCII-encoded domain namebytes- the byte representation of the DNS name
Method Details
getMessage
The ACE-encoded name and its octet length against the maximum name length.- Overrides:
getMessagein classThrowable