Class DnsWithResponseCodeException

All Implemented Interfaces:
Serializable

public class DnsWithResponseCodeException extends DnsException
An exception indicating a DNS error that includes a response code.
Since:
4.6
  • Constructor Details

    • DnsWithResponseCodeException

      public DnsWithResponseCodeException(String message, int responseCode, Throwable cause)
      Construct an instance
      Parameters:
      message - the message
      responseCode - the DNS response code
      cause - the cause
  • Method Details

    • getResponseCode

      public int getResponseCode()
      Gets the response code
      Returns:
      the response code