27 instantiations of HttpSysException
Microsoft.AspNetCore.Server.HttpSys (27)
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)
94
throw new
HttpSysException
((int)statusCode, $"Failed to attach to the given request queue '{requestQueueName}', the queue could not be found.");
98
throw new
HttpSysException
((int)statusCode, $"The given request queue name '{requestQueueName}' is invalid.");
102
throw new
HttpSysException
((int)statusCode);
113
throw new
HttpSysException
(Marshal.GetLastWin32Error());
154
throw new
HttpSysException
((int)result);
170
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 (2)
273
throw new
HttpSysException
((int)statusCode);
380
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)
673
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));
8 references to HttpSysException
Microsoft.AspNetCore.Server.HttpSys (4)
HttpSysListener.cs (1)
147
catch (
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)
96
var
exception = new HttpSysException((int)statusCode);
UrlPrefixCollection.cs (1)
233
catch (
HttpSysException
ex)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Listener\ServerTests.cs (2)
138
var
exception = Assert.Throws<
HttpSysException
>(() => listener.Start());
Listener\Utilities.cs (1)
57
catch (
HttpSysException
ex)
Utilities.cs (1)
164
catch (
HttpSysException
)