string FormatErrorText(RxSpyErrorModel err) { if (err == null) return "Nope, you're good"; var sb = new StringBuilder(); sb.AppendLine("Received: " + err.Received); sb.AppendLine(err.ErrorType.Namespace + err.ErrorType.Name); sb.AppendLine(); sb.AppendLine(err.Message); if (!string.IsNullOrEmpty(err.StackTrace)) { sb.AppendLine(); sb.AppendLine("Stacktrace: "); sb.AppendLine(err.StackTrace); } return sb.ToString(); }
public void OnError(IOnErrorEvent onErrorEvent) { Error = new RxSpyErrorModel(onErrorEvent); IsActive = false; Status = "Error"; }