private static void WriteException(Exception e, TezosTraceWriter writer) { writer.WriteLine(); writer.WritePaddedLine(e.GetType().Name, '-', 60); writer.WriteLine(); if (e is ITraceException te) { writer.WriteLine(e.Message); writer.WriteLine(); te.WriteTrace(writer); } else { writer.WriteLine(e.Message); } }
public static string CreateExceptionText(Exception e) { var writer = new TezosTraceWriter(); writer.WriteLine($"EXCEPTION"); var current = e; while (e != null) { WriteException(e, writer); e = e.InnerException; } writer.WriteLine(); return(writer.ToString()); }
public void WriteTrace(TezosTraceWriter writer) { writer.WriteProperty("Error", ServerError); }