public ExceptionToXMLBuider(Exception e) { this.Exception = new SerializableException(e); }
public SerializableException(Exception ex) { if (ex == null) { throw new ArgumentNullException(); } this.Exeption = ex; this.Message = ex.Message; this.StackTrace = ex.StackTrace; //this.TargetSite = ex.TargetSite.Name; if (ex.InnerException == null) { this.InnnerException = null; return; } this.InnnerException = new SerializableException(ex.InnerException); }