AttemptingToConnectToSqlDatabaseFailedException Class
The exception that is thrown when no connection to the SQL data base has been established.
public sealed class AttemptingToConnectToSqlDatabaseFailedException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 AttemptingToConnectToSqlDatabaseFailedException
Remarks
Section titled “Remarks”When using PrepareConnection(CancellationToken) and no connection could be established to the database this exception is thrown. Check the repository settings and whether these settings can be used to connect to the database from the computer running the code.
This exception is identified by error code HK12028.
Properties
Section titled “Properties”AttemptingToConnectToSqlDatabaseFailedException.EquivalentHttpStatusCode Property
Section titled “AttemptingToConnectToSqlDatabaseFailedException.EquivalentHttpStatusCode Property”When unhandled within an HTTP request, this exception produces HTTP 500 (Internal Server Error).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }Property Value
Section titled “Property Value”AttemptingToConnectToSqlDatabaseFailedException.Settings Property
Section titled “AttemptingToConnectToSqlDatabaseFailedException.Settings Property”The configuration settings that contain information about the connection to which no connection could be established.
public System.Collections.Generic.IReadOnlyDictionary<string,string> Settings { get; }Property Value
Section titled “Property Value”System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>