Domain Detective

API Reference

Class

DnsClientException

Namespace DnsClientX
Assembly DnsClientX
Base Exception
Implements
ISerializable

Represents exceptions specific to DnsClientX. This exception provides additional context by exposing the DNS response that caused the exception.

Inheritance

  • Exception
  • DnsClientException

Remarks

Thrown when an error occurs during resolution and the underlying response should be inspected.

Constructors

DnsClientException 3 overloads
public DnsClientException(String message) #

Initializes a new instance of the DnsClientException class with a specified error message.

Parameters

message System.String requiredposition: 0
The message that describes the error.
public DnsClientException(String message, DnsResponse response) #

Initializes a new instance of the DnsClientException class with a specified error message and the DNS response that caused this exception.

Parameters

message System.String requiredposition: 0
The message that describes the error.
response DnsClientX.DnsResponse requiredposition: 1
The DNS response that caused this exception.
public DnsClientException(String message, Exception inner) #

Initializes a new instance of the DnsClientException class with a specified error message and inner exception.

Parameters

message System.String requiredposition: 0
Error message.
inner System.Exception requiredposition: 1
Underlying exception.

Properties

public DnsResponse Response { get; set; } #

Gets or sets the DNS response that caused this exception.

{{ include "footer" }}