<PackageReference Include="Microsoft.Data.SqlClient.Extensions.Abstractions" Version="7.1.0-preview2.26190.5" />

Microsoft.Data.SqlClient.SqlAuthenticationProviderException

This exception is thrown for any errors that occur during the authentication process.
public string FailureCode { get; }

The failure code, or "Unknown" if not known.

The authentication method that failed, or NotSpecified if not known.

public int RetryPeriod { get; }

The period of time, in milliseconds, to wait before retrying the action. 0 if no retry period is suggested. Never negative. Always 0 when ShouldRetry is false.

public bool ShouldRetry { get; }

True if the action should be retried, false otherwise.

protected SqlAuthenticationProviderException(string message, Exception causedBy = null)

Protected construction for derived classes to supply a minimal set of values. Method will be NotSpecified. FailureCode will be "Unknown". ShouldRetry will be false. RetryPeriod will be 0.

protected SqlAuthenticationProviderException(SqlAuthenticationMethod method, string failureCode, bool shouldRetry, int retryPeriod, string message, Exception causedBy = null)

Protected construction for derived classes to supply values for all public properties.