Table of Contents

Interface IError

Namespace
LightResults
Assembly
LightResults.dll

Defines an error with a message and associated metadata.

public interface IError

Properties

Exception

Gets the LightResults.IError.Exception associated with the error if one exists.

Exception? Exception { get; }

Property Value

Exception?

Message

Gets the error message.

string Message { get; }

Property Value

string

Metadata

Gets the metadata associated with the error.

IReadOnlyDictionary<string, object?> Metadata { get; }

Property Value

IReadOnlyDictionary<string, object?>

Remarks

The metadata is represented as a read-only dictionary of key-value pairs, where the keys are System.String and the values are System.Object which may be null.