2 instantiations of WinHttpException
System.Net.Http.WinHttpHandler (2)
System\Net\Http\WinHttpException.cs (2)
61var e = new WinHttpException(error, GetErrorMessage(error, nameOfCalledFunction)); 68var e = new WinHttpException(error, GetErrorMessage(error, nameOfCalledFunction), innerException);
36 references to WinHttpException
System.Net.Http.WinHttpHandler (36)
System\Net\Http\WinHttpAuthHelper.cs (2)
307WinHttpException.ThrowExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpSetOption)); 378WinHttpException.ThrowExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpSetCredentials));
System\Net\Http\WinHttpCookieContainerAdapter.cs (2)
68throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpAddRequestHeaders)); 83throw WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpAddRequestHeaders));
System\Net\Http\WinHttpException.cs (5)
53public static WinHttpException CreateExceptionUsingLastError(string nameOfCalledFunction) 59public static WinHttpException CreateExceptionUsingError(int error, string nameOfCalledFunction) 61var e = new WinHttpException(error, GetErrorMessage(error, nameOfCalledFunction)); 66public static WinHttpException CreateExceptionUsingError(int error, string nameOfCalledFunction, Exception innerException) 68var e = new WinHttpException(error, GetErrorMessage(error, nameOfCalledFunction), innerException);
System\Net\Http\WinHttpHandler.cs (11)
768throw WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpAddRequestHeaders)); 846throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpSetOption)); 1213throw WinHttpException.CreateExceptionUsingError( 1254WinHttpException.ThrowExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpSetTimeouts)); 1537WinHttpException.ThrowExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpSetOption)); 1554WinHttpException.ThrowExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpSetOption)); 1566else if (ex is WinHttpException || ex is IOException || ex is InvalidOperationException) 1634throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpSetStatusCallback)); 1648throw WinHttpException.CreateExceptionUsingError(lastError, nameOfCalledFunction); 1674WinHttpException.ThrowExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpSendRequest)); 1701throw WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReceiveResponse));
System\Net\Http\WinHttpRequestCallback.cs (5)
302throw WinHttpException.CreateExceptionUsingError(lastError, "WINHTTP_CALLBACK_STATUS_SENDING_REQUEST/WinHttpQueryOption"); 421throw WinHttpException.CreateExceptionUsingError( 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\WinHttpRequestStream.cs (2)
237new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData)))); 258new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData))));
System\Net\Http\WinHttpResponseParser.cs (4)
98WinHttpException.ThrowExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryHeaders)); 169throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpQueryHeaders)); 196throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpQueryHeaders)); 227throw WinHttpException.CreateExceptionUsingError(lastError, nameof(Interop.WinHttp.WinHttpQueryHeaders));
System\Net\Http\WinHttpResponseStream.cs (4)
126throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 143throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData))); 227throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 242throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData)));
System\Net\Http\WinHttpTraceHelper.cs (1)
31$"api={apiName}, error={GetNameFromError(error)}({error}) \"{WinHttpException.GetErrorMessage((int)error, apiName)}\"",