27 instantiations of HttpSysException
Microsoft.AspNetCore.Server.HttpSys (27)
AsyncAcceptContext.cs (3)
54return ValueTask.FromException<RequestContext>(new HttpSysException((int)statusCode)); 69throw new HttpSysException((int)errorCode); 104throw new HttpSysException((int)statusCode);
NativeInterop\RequestQueue.cs (6)
94throw new HttpSysException((int)statusCode, $"Failed to attach to the given request queue '{requestQueueName}', the queue could not be found."); 98throw new HttpSysException((int)statusCode, $"The given request queue name '{requestQueueName}' is invalid."); 102throw new HttpSysException((int)statusCode); 113throw new HttpSysException(Marshal.GetLastWin32Error()); 154throw new HttpSysException((int)result); 170throw new HttpSysException((int)result);
NativeInterop\ServerSession.cs (1)
19throw new HttpSysException((int)statusCode);
NativeInterop\UrlGroup.cs (5)
40throw new HttpSysException((int)statusCode); 96var exception = new HttpSysException((int)statusCode); 163throw new HttpSysException((int)statusCode, Resources.FormatException_PrefixAlreadyRegistered(uriPrefix)); 167throw new HttpSysException((int)statusCode, Resources.FormatException_AccessDenied(uriPrefix, Environment.UserDomainName + @"\" + Environment.UserName)); 169throw new HttpSysException((int)statusCode);
RequestProcessing\ClientCertLoader.cs (2)
193Fail(new HttpSysException((int)statusCode)); 263asyncResult.Fail(new HttpSysException((int)errorCode));
RequestProcessing\RequestContext.cs (2)
273throw new HttpSysException((int)statusCode); 380throw new HttpSysException((int)statusCode);
RequestProcessing\RequestStream.cs (2)
158Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 279Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\RequestStreamAsyncResult.cs (1)
79asyncResult.Fail(new IOException(string.Empty, new HttpSysException((int)errorCode)));
RequestProcessing\Response.cs (1)
673throw new HttpSysException((int)errorCode);
RequestProcessing\ResponseBody.cs (3)
176var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 392Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 715var exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\ResponseStreamAsyncResult.cs (1)
245var exception = new IOException(string.Empty, new HttpSysException((int)errorCode));
8 references to HttpSysException
Microsoft.AspNetCore.Server.HttpSys (4)
HttpSysListener.cs (1)
147catch (HttpSysException)
IHttpSysRequestPropertyFeature.cs (1)
33/// <exception cref="HttpSysException">Any HttpSys error except for ERROR_INSUFFICIENT_BUFFER or ERROR_MORE_DATA.</exception>
NativeInterop\UrlGroup.cs (1)
96var exception = new HttpSysException((int)statusCode);
UrlPrefixCollection.cs (1)
233catch (HttpSysException ex)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Listener\ServerTests.cs (2)
138var exception = Assert.Throws<HttpSysException>(() => listener.Start());
Listener\Utilities.cs (1)
57catch (HttpSysException ex)
Utilities.cs (1)
164catch (HttpSysException)