Package io.vertx.core.dns

## Class DnsException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - io.vertx.core.VertxException
        - - io.vertx.core.dns.DnsException

- All Implemented Interfaces:
    `Serializable`

      public final class DnsException
      extends VertxException

  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 | Description
    --- | ---
    `DnsException​(DnsResponseCode code)` |

  - ### Method Summary

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

    - ### Methods inherited from class io.vertx.core.VertxException

      `noStackTrace, noStackTrace, noStackTrace`

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