public static Exception CreateHttpRequestException(HttpRequestException requestException, HttpRequestMessage request, HttpAbortReason abortReason) { var baseException = requestException.GetBaseException(); return new CommunicationException(baseException.Message, baseException); }
public static Exception CreateResponseHttpRequestException(HttpRequestException requestException, HttpResponseMessage response) { var baseException = requestException.GetBaseException(); return new CommunicationException(baseException.Message, baseException); }