All Implemented Interfaces:
Serializable
Enclosing class:
InvalidDnsNameException

public static class InvalidDnsNameException.LabelTooLongExceptionextends InvalidDnsNameException
Exception thrown when a DNS label exceeds the maximum allowed length.
DNS labels are limited to 63 characters according to DNS specifications.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Pinned for serialized-form compatibility.
      See Also:
    • label

      private final String label
      The specific label that exceeds the maximum length
  • Constructor Details

    • LabelTooLongException

      public LabelTooLongException(String ace, String label)
      Creates a new LabelTooLongException.
      Parameters:
      ace - the ASCII-encoded domain name
      label - the specific label that is too long
  • Method Details

    • getMessage

      public String getMessage()
      The specific label that was too long, with the ACE-encoded name and the maximum length in octets.
      Overrides:
      getMessage in class Throwable