26 instantiations of HttpSysException
Microsoft.AspNetCore.Server.HttpSys (26)
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)
67throw new HttpSysException((int)statusCode, $"Failed to attach to the given request queue '{requestQueueName}', the queue could not be found."); 71throw new HttpSysException((int)statusCode, $"The given request queue name '{requestQueueName}' is invalid."); 75throw new HttpSysException((int)statusCode); 86throw new HttpSysException(Marshal.GetLastWin32Error()); 118throw new HttpSysException((int)result); 134throw 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 (1)
323throw 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)
675throw 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));
7 references to HttpSysException
Microsoft.AspNetCore.Server.HttpSys (3)
HttpSysListener.cs (1)
156catch (HttpSysException)
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)
137var exception = Assert.Throws<HttpSysException>(() => listener.Start());
Listener\Utilities.cs (1)
56catch (HttpSysException ex)
Utilities.cs (1)
163catch (HttpSysException)