public static SerializedException NewInstance(Exception e) { SerializedException exception = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <SerializedException >(); exception.Init(e); return(exception); }
private void Stringify(StringBuilder sb) { sb.Append(GetMessage()).Append("\n").Append(GetRemoteTrace()); SerializedException cause = GetCause(); if (cause != null) { sb.Append("Caused by: "); cause.Stringify(sb); } }