Class DnsResponseException
A DnsClient specific exception transporting additional information about the query causing this exception.
Inherited Members
Namespace: DnsClient
Assembly: DnsClient.dll
Syntax
public class DnsResponseException : Exception
Constructors
| Improve this Doc View SourceDnsResponseException()
Initializes a new instance of the DnsResponseException class with Code set to Unassigned.
Declaration
public DnsResponseException()
DnsResponseException(DnsResponseCode)
Initializes a new instance of the DnsResponseException class
with the standard error text for the given code
.
Declaration
public DnsResponseException(DnsResponseCode code)
Parameters
Type | Name | Description |
---|---|---|
DnsResponseCode | code |
DnsResponseException(DnsResponseCode, String)
Initializes a new instance of the DnsResponseException class
with a custom message
and the given code
.
Declaration
public DnsResponseException(DnsResponseCode code, string message)
Parameters
Type | Name | Description |
---|---|---|
DnsResponseCode | code | |
String | message |
DnsResponseException(DnsResponseCode, String, Exception)
Initializes a new instance of the DnsResponseException class
with a custom message
and the given code
.
Declaration
public DnsResponseException(DnsResponseCode code, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
DnsResponseCode | code | |
String | message | |
Exception | innerException |
DnsResponseException(String)
Initializes a new instance of the DnsResponseException class
with Code set to Unassigned
and a custom message
.
Declaration
public DnsResponseException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message |
DnsResponseException(String, Exception)
Initializes a new instance of the DnsResponseException class
with Code set to Unassigned
and a custom message
and inner Exception.
Declaration
public DnsResponseException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | |
Exception | innerException |
Properties
| Improve this Doc View SourceAuditTrail
Gets the audit trail if EnableAuditTrail. as set to true
, null
otherwise.
Declaration
public string AuditTrail { get; }
Property Value
Type | Description |
---|---|
String | The audit trail. |
Code
Gets the response code.
Declaration
public DnsResponseCode Code { get; }
Property Value
Type | Description |
---|---|
DnsResponseCode | The response code. |
DnsError
Gets a human readable error message.
Declaration
public string DnsError { get; }
Property Value
Type | Description |
---|---|
String | The error message. |