TestimoX

API Reference

Class

ActiveDirectoryConnectivityException

Namespace TestimoX.Exceptions
Assembly TestimoX
Base Exception
Implements
ISerializable

Exception thrown when Active Directory connectivity cannot be established.

Inheritance

  • Exception
  • ActiveDirectoryConnectivityException

Remarks

This exception is typically thrown when a query to Active Directory fails due to network issues or missing permissions.

Examples


try {
    // Attempt a directory query
} catch (ActiveDirectoryConnectivityException ex) {
    Console.WriteLine($"Failed to connect to {ex.Domain}: {ex.Message}");
}

        

Constructors

public ActiveDirectoryConnectivityException(String domain, String message) #

Creates a new instance indicating a connectivity problem with the specified domain.

Parameters

domain System.String requiredposition: 0
Domain DNS name; may be null when unknown.
message System.String requiredposition: 1
Human-readable error message.

Properties

public String Domain { get; } #

DNS name of the domain that failed to respond.