26 instantiations of HttpSysException
Microsoft.AspNetCore.Server.HttpSys (26)
AsyncAcceptContext.cs (3)
54
return ValueTask.FromException<RequestContext>(new
HttpSysException
((int)statusCode));
69
throw new
HttpSysException
((int)errorCode);
104
throw new
HttpSysException
((int)statusCode);
NativeInterop\RequestQueue.cs (6)
67
throw new
HttpSysException
((int)statusCode, $"Failed to attach to the given request queue '{requestQueueName}', the queue could not be found.");
71
throw new
HttpSysException
((int)statusCode, $"The given request queue name '{requestQueueName}' is invalid.");
75
throw new
HttpSysException
((int)statusCode);
86
throw new
HttpSysException
(Marshal.GetLastWin32Error());
118
throw new
HttpSysException
((int)result);
134
throw new
HttpSysException
((int)result);
NativeInterop\ServerSession.cs (1)
19
throw new
HttpSysException
((int)statusCode);
NativeInterop\UrlGroup.cs (5)
40
throw new
HttpSysException
((int)statusCode);
96
var exception = new
HttpSysException
((int)statusCode);
163
throw new
HttpSysException
((int)statusCode, Resources.FormatException_PrefixAlreadyRegistered(uriPrefix));
167
throw new
HttpSysException
((int)statusCode, Resources.FormatException_AccessDenied(uriPrefix, Environment.UserDomainName + @"\" + Environment.UserName));
169
throw new
HttpSysException
((int)statusCode);
RequestProcessing\ClientCertLoader.cs (2)
193
Fail(new
HttpSysException
((int)statusCode));
263
asyncResult.Fail(new
HttpSysException
((int)errorCode));
RequestProcessing\RequestContext.cs (1)
323
throw new
HttpSysException
((int)statusCode);
RequestProcessing\RequestStream.cs (2)
158
Exception exception = new IOException(string.Empty, new
HttpSysException
((int)statusCode));
279
Exception exception = new IOException(string.Empty, new
HttpSysException
((int)statusCode));
RequestProcessing\RequestStreamAsyncResult.cs (1)
79
asyncResult.Fail(new IOException(string.Empty, new
HttpSysException
((int)errorCode)));
RequestProcessing\Response.cs (1)
675
throw new
HttpSysException
((int)errorCode);
RequestProcessing\ResponseBody.cs (3)
176
var exception = new IOException(string.Empty, new
HttpSysException
((int)statusCode));
392
Exception exception = new IOException(string.Empty, new
HttpSysException
((int)statusCode));
715
var exception = new IOException(string.Empty, new
HttpSysException
((int)statusCode));
RequestProcessing\ResponseStreamAsyncResult.cs (1)
245
var exception = new IOException(string.Empty, new
HttpSysException
((int)errorCode));
7 references to HttpSysException
Microsoft.AspNetCore.Server.HttpSys (3)
HttpSysListener.cs (1)
156
catch (
HttpSysException
)
NativeInterop\UrlGroup.cs (1)
96
var
exception = new HttpSysException((int)statusCode);
UrlPrefixCollection.cs (1)
233
catch (
HttpSysException
ex)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Listener\ServerTests.cs (2)
137
var
exception = Assert.Throws<
HttpSysException
>(() => listener.Start());
Listener\Utilities.cs (1)
56
catch (
HttpSysException
ex)
Utilities.cs (1)
163
catch (
HttpSysException
)