using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Infra; namespace Infra { public class SoapFaultException : Exception { public string FaultCode { get; } public string FaultString { get; } public string ErrorCode { get; } public string ErrorMessage { get; } public SoapFaultException(string faultCode, string faultString, string errorCode, string errorMessage) : base($"{faultString} (Code: {errorCode})") { FaultCode = faultCode; FaultString = faultString; ErrorCode = errorCode; ErrorMessage = errorMessage; } } }