io.vertx.core.dns

## Class DnsException

- java.lang.Object
- - java.lang.Throwable
  - - io.vertx.core.impl.NoStackTraceThrowable
    - - io.vertx.core.dns.DnsException

- All Implemented Interfaces:
    Serializable

      public final class DnsException
      extends io.vertx.core.impl.NoStackTraceThrowable

  Exception which is used to notify the `AsyncResult` if the DNS query returns a `DnsResponseCode` which indicates and error.
  Author:
    Norman Maurer
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DnsException(DnsResponseCode code)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `DnsResponseCode` | `code()` The `DnsResponseCode` which caused this `DnsException` to be created.

    - ### 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`

- - ### Constructor Detail

    - #### DnsException

          public DnsException(DnsResponseCode code)

  - ### Method Detail

    - #### code

          public DnsResponseCode code()

      The `DnsResponseCode` which caused this `DnsException` to be created.

Copyright © 2019 Eclipse. All rights reserved.