예제 #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
 protected override IReasonStringBuilder GetReasonStringBuilder()
 {
     return(base.GetReasonStringBuilder()
            .WithInfo(nameof(Reasons), ReasonFormat.ErrorReasonsToString(Reasons)));
 }