Skip to main content

DataverseConnectionException

  • Namespace: PPDS.Dataverse.Security
  • Assembly: PPDS.Dataverse
  • Kind: Class
  • Base: Exception
  • Implements: ISerializable

Summary​

Exception thrown when a Dataverse connection fails. This exception sanitizes error messages to prevent connection string secrets from leaking.

Members​

Constructors​

DataverseConnectionException()​

DataverseConnectionException()

Initializes a new instance of the PPDS.Dataverse.Security.DataverseConnectionException class.

DataverseConnectionException(string connectionName, string message, Exception innerException)​

DataverseConnectionException(string connectionName, string message, Exception innerException)

Initializes a new instance of the PPDS.Dataverse.Security.DataverseConnectionException class.

  • Param connectionName: The name of the connection configuration that failed.

  • Param message: The error message (will be redacted if it contains sensitive data).

  • Param innerException: The original exception that caused this error.

DataverseConnectionException(string message)​

DataverseConnectionException(string message)

Initializes a new instance of the PPDS.Dataverse.Security.DataverseConnectionException class.

  • Param message: The error message (will be redacted if it contains sensitive data).

DataverseConnectionException(string message, Exception innerException)​

DataverseConnectionException(string message, Exception innerException)

Initializes a new instance of the PPDS.Dataverse.Security.DataverseConnectionException class.

  • Param message: The error message (will be redacted if it contains sensitive data).

  • Param innerException: The original exception that caused this error.

Methods​

CreateAuthenticationFailed​

DataverseConnectionException CreateAuthenticationFailed(string connectionName, Exception innerException)

Creates a connection exception for an authentication failure.

  • Param connectionName: The name of the connection configuration.

  • Param innerException: The original exception from the authentication attempt.

  • Returns: A sanitized exception safe for logging.

CreateConnectionFailed​

DataverseConnectionException CreateConnectionFailed(string connectionName, Exception innerException)

Creates a connection exception for a failed connection attempt.

  • Param connectionName: The name of the connection configuration.

  • Param innerException: The original exception from the connection attempt.

  • Returns: A sanitized exception safe for logging.

ToString​

string ToString()

(inherited from System.Exception.ToString)

Properties​

ConnectionName​

string ConnectionName { get; }

Gets the name of the connection configuration that failed.