protected ServiceResponse(string errorMessage, object errorDetails = null, ErrorResponseType errorType = ErrorResponseType.Unknown) { Throw.IfNullOrWhiteSpace(errorMessage, nameof(errorMessage)); IsError = true; ErrorMessage = errorMessage; ErrorDetails = errorDetails; ErrorType = errorType; }
public ServiceErrorException(string message, ErrorResponseType serviceErrorResponse) : base(message) { _serviceErrorResponse = serviceErrorResponse; }