org.minidns.dnslabel

## Class DnsLabel.LabelToLongException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - java.lang.IllegalArgumentException
        - - org.minidns.dnslabel.DnsLabel.LabelToLongException

- All Implemented Interfaces:
    Serializable
  Enclosing class:
    DnsLabel

      public static class DnsLabel.LabelToLongException
      extends IllegalArgumentException

  Exception thrown when a DNS label exceeds the maximum allowed length.
  DNS labels are limited to 63 characters according to RFC 1035.
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `String` | `label` The DNS label that caused this exception

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LabelToLongException(String label)` Creates a new LabelToLongException for the specified label.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### label

          public final String label

      The DNS label that caused this exception

  - ### Constructor Detail

    - #### LabelToLongException

          LabelToLongException(String label)

      Creates a new LabelToLongException for the specified label.
      Parameters:
        `label` - the DNS label that exceeds the maximum length