Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public void OnError(IOnErrorEvent onErrorEvent)
 {
     Error    = new RxSpyErrorModel(onErrorEvent);
     IsActive = false;
     Status   = "Error";
 }
Esempio n. 3
0
 public void OnError(IOnErrorEvent onErrorEvent)
 {
     Error = new RxSpyErrorModel(onErrorEvent);
     IsActive = false;
     Status = "Error";
 }