Пример #1
0
 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);
     }
 }
Пример #2
0
 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);
     }
 }