private RestClientException ( string url, string method, |
||
url | string | |
method | string | |
e | ||
Результат | System |
internal RestClientException(string url, string method, WebException e)
: base(e.Message, e)
{
this.Url = url;
this.Method = method;
this.RequestStatus = e.Status;
if (e.Status == WebExceptionStatus.ProtocolError && e.Response != null)
{
var httpResponse = (HttpWebResponse)e.Response;
this.HttpStatus = httpResponse.StatusCode;
this.Response = new RestClient.Response(httpResponse);
}
}