public RequestException(RequestError error, WebException ex) : base(error.Error, ex) { var response = ex.Response as HttpWebResponse; this.RequestError = error; this.StatusCode = response.StatusCode; this.StatusDescription = response.StatusDescription; }
public RequestException(RequestError error, HttpStatusCode statusCode, string statusDescription) { this.RequestError = error; this.StatusCode = statusCode; this.StatusDescription = statusDescription; }