Class ErrorDetails
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
msgData
Optional detail data to be used to resolve placeholder values in a message template.
public IDictionary<string, object?>? msgData { get; set; }
Property Value
msgTemplate
Error message template with the format defined with ExceptionDataKey.
public required string msgTemplate { get; set; }
Property Value
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)