private static string ComposeMessage(WebServiceException e, SamplesErrorResponse errorResponse) { if (errorResponse?.Message == null) { return(e.Message); } return($"{e.Message}: {errorResponse.Message}"); }
public SamplesAuthenticationException(string message, WebServiceException originalException, SamplesErrorResponse errorResponse) : base(message, originalException, errorResponse) { }
public SamplesApiException(string message, WebServiceException originalException, SamplesErrorResponse errorResponse) : base(message, originalException) { StatusCode = originalException.StatusCode; SamplesError = errorResponse; }