CannotLogToSpecifiedRepositoryException Class
HAKOM.Logging.HakomDatabaseLog.Net.Api.Exceptions
Section titled “HAKOM.Logging.HakomDatabaseLog.Net.Api.Exceptions”Thrown when the repository to log to is not defined in the available configuration.
public sealed class CannotLogToSpecifiedRepositoryException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 CannotLogToSpecifiedRepositoryException
Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”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; }Property Value
Section titled “Property Value”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; }Property Value
Section titled “Property Value”System.String
The System.String that was configured in Repository
and did not match any entry in the Persistence:Repositories section.