Separação em camadas. Utilização de estimativa para horas faltantes (entre 9 e 11 registros).
22 lines
602 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
|