Skip to content
Documentation

UnknownLogLevelException Class

Thrown when an attempt is made to log using a log level that is unknown.

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

Inheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 UnknownLogLevelException

When calling Microsoft.Extensions.Logging.ILogger.Log<>.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,<>.Exception,System.Func{<>.Exception,System.String}) or any of the “Log” extension methods in Microsoft.Extensions.Logging.LoggerExtensions while passing a Microsoft.Extensions.Logging.LogLevel that this database logger does not support, this exception is thrown.

Loggers will usually support all defined Microsoft.Extensions.Logging.LogLevels. Make sure the level is defined by calling System.Enum.IsDefined(System.Type,System.Object).

This exception is identified by error code HK05005.

UnknownLogLevelException.EquivalentHttpStatusCode Property

Section titled “UnknownLogLevelException.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

© 2026 Volue.Version v0.6.38017 November 2026