예제 #1
0
 public static RestClientException CreateFailedException(RSharp.RestClient restClient, RSharp.IRestResponse restResponse)
 => RestClientException.Create(restResponse.StatusCode,
                               restResponse.StatusDescription,
                               restResponse.Request.ToRestClientRequest(restClient.BaseUrl),
                               restResponse.ToRestClientRequest());
예제 #2
0
 public static RestClientException CreateErrorException(RSharp.RestClient restClient, RSharp.IRestResponse restResponse, Exception ex)
 => new RestClientException(HttpStatusCode.InternalServerError,
                            ex.Message,
                            restResponse.Request.ToRestClientRequest(restClient.BaseUrl),
                            restResponse.ToRestClientRequest());