コード例 #1
0
 public override string ToString()
 {
     return(new ReasonStringBuilder()
            .WithReasonType(GetType())
            .WithInfo(nameof(Message), Message)
            .WithInfo(nameof(Metadata), string.Join("; ", Metadata))
            .WithInfo(nameof(Reasons), ReasonFormat.ErrorReasonsToString(Reasons))
            .Build());
 }
コード例 #2
0
ファイル: Error.cs プロジェクト: EnergyNick/FluentResults
 protected override IReasonStringBuilder GetReasonStringBuilder()
 {
     return(base.GetReasonStringBuilder()
            .WithInfo(nameof(Reasons), ReasonFormat.ErrorReasonsToString(Reasons)));
 }