PI_Assync_SCDE/Infrastructure/SoapFaultException.cs
Adriano Serighelli 460598c6b5 Código funcional.
Separação em camadas.
Utilização de estimativa para horas faltantes (entre 9 e 11 registros).
2025-10-02 17:46:48 -03:00

22 lines
602 B
C#

namespace Infrastructure
{
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;
}
}
}