Creates a new Error log entry.

Namespace: Keystone.Almanac
Assembly: Keystone.Almanac (in Keystone.Almanac.dll)

public Error( 
string message
Exception exception
Nullable<int> categoryId = null, 
string operationName = "not set", 
Severity severity = Severity.High 
)
This language is not supported or no code example is available.

Parameters

message

Type: string

A brief explanatory text of this entry.

exception

Type: Exception

The exception associated to this entry.

categoryId

Type: Nullable<int>

The cataloged number or error code that identifies well known entries.

operationName

Type: string

The operation name associated to this entry.

severity

Type: Severity

The application dependent degree of impact or relevance of this entry.

Exception type Condition

ArgumentException

If a null value is given for the exception argument.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono