All Implemented Interfaces:
Serializable
Enclosing class:
InvalidDnsNameException

public static class InvalidDnsNameException.DNSNameTooLongExceptionextends InvalidDnsNameException
Exception thrown when a DNS name exceeds the maximum allowed length.
DNS names are limited to 255 octets according to DNS specifications.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial version UID for serialization
      See Also:
    • bytes

      private final byte[] bytes
      The byte representation of the DNS name that exceeds the maximum length
  • Constructor Details

    • DNSNameTooLongException

      public DNSNameTooLongException(String ace, byte[] bytes)
      Creates a new DNSNameTooLongException.
      Parameters:
      ace - the ASCII-encoded domain name
      bytes - the byte representation of the DNS name
  • Method Details

    • getMessage

      public String getMessage()
      The ACE-encoded name and its octet length against the maximum name length.
      Overrides:
      getMessage in class Throwable