public WcfFault(Exception ex) { Code = ex.GetType().FullName; Reason = ex.ToString(); Message = ex.Message; ExceptionTypeName = ex.GetType().AssemblyQualifiedName; if (ex.InnerException != null) { InnerFault = new WcfFault(ex.InnerException, ex.Message); } }
public WcfFault(Exception ex) { Code = ex.GetType().FullName; Reason = ex.ToString(); Message = ex.Message; ExceptionTypeName = ex.GetType().AssemblyQualifiedName; if (ex.InnerException != null) { InnerFault = new WcfFault(ex.InnerException, ex.Message); } }