Class ReasonMetadata

Namespace
REslava.Result
Assembly
REslava.Result.dll

System/diagnostic metadata captured automatically when an error or success is created. Separate from Tags, which holds user/business metadata.

public sealed record ReasonMetadata : IEquatable<ReasonMetadata>
Inheritance
ReasonMetadata
Implements
Inherited Members
Extension Methods

Remarks

Tags are for user/business metadata (field names, HTTP codes, custom context).

Metadata is for framework/diagnostic data (caller info, pipeline position).

Fields

Empty

Singleton empty metadata instance.

public static readonly ReasonMetadata Empty

Field Value

ReasonMetadata

Properties

CallerFile

Source file path of the creation site (via [CallerFilePath]).

public string? CallerFile { get; init; }

Property Value

string

CallerLine

Source line number of the creation site (via [CallerLineNumber]).

public int? CallerLine { get; init; }

Property Value

int?

CallerMember

Name of the method that created this reason (via [CallerMemberName]).

public string? CallerMember { get; init; }

Property Value

string

NodeId

Stable node identity within the pipeline diagram (e.g. "node_2"). Set by REslava.Result.Flow to correlate runtime errors with diagram nodes.

public string? NodeId { get; init; }

Property Value

string

PipelineStep

Name of the pipeline step that produced this reason (e.g. "FindUser", "SaveOrder"). Set by REslava.Result.Flow at diagram generation time for Mermaid node annotation.

public string? PipelineStep { get; init; }

Property Value

string