13 references to CreateExceptionUsingError
System.Net.Http.WinHttpHandler (13)
System\Net\Http\WinHttpCookieContainerAdapter.cs (1)
68throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpAddRequestHeaders));
System\Net\Http\WinHttpException.cs (1)
56return CreateExceptionUsingError(lastError, nameOfCalledFunction);
System\Net\Http\WinHttpHandler.cs (4)
846throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpSetOption)); 1213throw WinHttpException.CreateExceptionUsingError( 1634throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpSetStatusCallback)); 1648throw WinHttpException.CreateExceptionUsingError(lastError, nameOfCalledFunction);
System\Net\Http\WinHttpRequestCallback.cs (4)
302throw WinHttpException.CreateExceptionUsingError(lastError, "WINHTTP_CALLBACK_STATUS_SENDING_REQUEST/WinHttpQueryOption"); 432throw WinHttpException.CreateExceptionUsingError( 444Exception innerException = WinHttpException.CreateExceptionUsingError(unchecked((int)asyncResult.dwError), "WINHTTP_CALLBACK_STATUS_REQUEST_ERROR"); 543throw WinHttpException.CreateExceptionUsingError(lastError, "WINHTTP_CALLBACK_STATUS_REDIRECT/WinHttpAddRequestHeaders");
System\Net\Http\WinHttpResponseParser.cs (3)
169throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpQueryHeaders)); 196throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpQueryHeaders)); 227throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpQueryHeaders));