Table of Contents

Class ErrorDetails

Namespace
Tlabs.Server.Model
Assembly
Tlabs.SrvBase.dll

Error details.

public sealed class ErrorDetails
Inheritance
ErrorDetails
Inherited Members
Extension Methods

Constructors

ErrorDetails()

public ErrorDetails()

Properties

code

Technical error code to categorize or narrow the functional area affected by the error.

public required string code { get; set; }

Property Value

string

msgData

Optional detail data to be used to resolve placeholder values in a message template.

public IDictionary<string, object?>? msgData { get; set; }

Property Value

IDictionary<string, object>

msgTemplate

Error message template with the format defined with ExceptionDataKey.

public required string msgTemplate { get; set; }

Property Value

string

Remarks

This could also be used as error key to lookup a localized or application specific description (template)

Methods

Optional(Exception)

Optional error details from e.

public static ErrorDetails? Optional(Exception e)

Parameters

e Exception

Returns

ErrorDetails