Skip to main content
Version: 4.x

DarkWS.ErrorMessage_T_

DarkWS​

DarkWS​

ErrorMessage<T> Class​

Error response carrying a stable code and optional typed details.

public sealed record ErrorMessage<T> : System.IEquatable<DarkWS.ErrorMessage<T>>

Type parameters​

T

Inheritance System.Object → ErrorMessage<T>

Implements System.IEquatable<DarkWS.ErrorMessage<T>>

Constructors​

ErrorMessage(string, string, T) Constructor​

Error response carrying a stable code and optional typed details.

public ErrorMessage(string Id, string Error, T? Data);

Parameters​

Id System.String

Correlation or identity key.

Error System.String

Stable error code.

Data T

Optional result or notification data.

Properties​

ErrorMessage<T>.Data Property​

Optional result or notification data.

public T? Data { get; init; }

Property Value​

T

ErrorMessage<T>.Error Property​

Stable error code.

public string Error { get; init; }

Property Value​

System.String

ErrorMessage<T>.Id Property​

Correlation or identity key.

public string Id { get; init; }

Property Value​

System.String