Skip to content
Documentation

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.HakomException

Inheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 AttemptingToConnectToSqlDatabaseFailedException

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.

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; }

System.Net.HttpStatusCode

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; }

System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

© 2026 Volue.Version v0.6.38017 November 2026