HAKOM.Logging.HakomDatabaseLog.Net.Api.Exceptions Namespace
Contains exceptions thrown when database logging cannot be configured or operated correctly.
Remarks
Section titled “Remarks”All exceptions in this namespace inherit from HakomException
and carry unique error codes in the HK050xx range. Each exception specifies an
System.Net.HttpStatusCode so that unhandled exceptions are automatically mapped
to an appropriate HTTP response when thrown inside an HTTP request pipeline.
The following exceptions are defined:
- UnknownLogLevelException — Thrown when an unsupported Microsoft.Extensions.Logging.LogLevel is passed to the database logger. Error code HK05005.
- NoRepositoryConfiguredException — Thrown when the
Repositorysetting is missing or empty. Error code HK05006. - CannotLogToSpecifiedRepositoryException — Thrown when the configured repository name does not match any known repository. Error code HK05007.
- RepositoryConfigurationRequiredForDatabaseLogException — Thrown when no
Persistence:Repositoriesconfiguration section exists. Error code HK05008.
| Classes | |
|---|---|
| CannotLogToSpecifiedRepositoryException | Thrown when the repository to log to is not defined in the available configuration. |
| NoRepositoryConfiguredException | Thrown when there is no repository configured for the logger to log to. |
| RepositoryConfigurationRequiredForDatabaseLogException | Thrown when there is no Persistence:Repositories section in the available configuration. |
| UnknownLogLevelException | Thrown when an attempt is made to log using a log level that is unknown. |
Was this page helpful?Thanks for your feedback!