internal static void DealServiceFault(MessageFault fault)
        {
            if (fault == null)
            {
                return;
            }

            MessageFaultCollection faults = new MessageFaultCollection();

            faults.Add(fault);

            DealServiceFault(faults);
        }
 internal static void DealServiceFault(MessageFaultCollection faults)
 {
     if (faults != null && faults.Count > 0)
     {
         string exceptionMessage = string.Empty;
         string exceptionCodes   = string.Empty;
         foreach (MessageFault fault in faults)
         {
             exceptionCodes   += fault.ErrorCode + ";";
             exceptionMessage += fault.ErrorDescription + System.Environment.NewLine;
         }
         exceptionCodes = exceptionCodes.Substring(0, exceptionCodes.Length - 1);
         BusinessException exception = new BusinessException(exceptionMessage);
         exception.ErrorCode        = exceptionCodes;
         exception.ErrorDescription = exceptionMessage;
         throw exception;
     }
 }