io.vertx.core.dns

## Class DnsException

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

- All Implemented Interfaces:
    Serializable

      public final class DnsException
      extends Exception

  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 © 2016. All rights reserved.