Esempio n. 1
0
 public ExceptionToXMLBuider(Exception e)
 {
     this.Exception = new SerializableException(e);
 }
Esempio n. 2
0
        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);
        }