Skip to content
Documentation

CannotLogToSpecifiedRepositoryException Class

Thrown when the repository to log to is not defined in the available configuration.

public sealed class CannotLogToSpecifiedRepositoryException : HAKOM.ErrorHandling.Core.Net.Api.HakomException

Inheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 CannotLogToSpecifiedRepositoryException

The configuration for database logging must include a “Repository” setting (see Repository) That setting must be equal to the name of a repository configured under Persistence:Repositories. If there is no configured repository with a matching name, this exception is thrown.

To fix this error, make sure the setting matches a configured repository name, or add a matching repository configuration to HAKOM:TSM:Persistence:Repositories section, or add the missing repository configuration entry.

This exception is identified by error code HK05007.

CannotLogToSpecifiedRepositoryException.EquivalentHttpStatusCode Property

Section titled “CannotLogToSpecifiedRepositoryException.EquivalentHttpStatusCode Property”

When this exception is thrown inside an HTTP request, the request should return a response with HTTP status code 500 (Internal server error).

protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }

System.Net.HttpStatusCode

CannotLogToSpecifiedRepositoryException.RepositoryName Property

Section titled “CannotLogToSpecifiedRepositoryException.RepositoryName Property”

Gets the name of the repository that could not be resolved from the configuration.

public string RepositoryName { get; }

System.String
The System.String that was configured in Repository and did not match any entry in the Persistence:Repositories section.

© 2026 Volue.Version v0.6.38017 November 2026