15 instantiations of QuicException
System.Net.Quic (15)
System\Net\Quic\Internal\ThrowHelper.cs (11)
18
return new
QuicException
(QuicError.ConnectionAborted, errorCode, SR.Format(SR.net_quic_connectionaborted, errorCode));
23
return new
QuicException
(QuicError.StreamAborted, errorCode, SR.Format(SR.net_quic_streamaborted, errorCode));
28
return new
QuicException
(QuicError.OperationAborted, null, message ?? SR.net_quic_operationaborted);
49
exception = new
QuicException
(QuicError.ConnectionAborted, null, "");
87
if (status == QUIC_STATUS_CONNECTION_REFUSED) return new
QuicException
(QuicError.ConnectionRefused, null, errorCode, SR.net_quic_connection_refused);
88
if (status == QUIC_STATUS_CONNECTION_TIMEOUT) return new
QuicException
(QuicError.ConnectionTimeout, null, errorCode, SR.net_quic_timeout);
89
if (status == QUIC_STATUS_VER_NEG_ERROR) return new
QuicException
(QuicError.VersionNegotiationError, null, errorCode, SR.net_quic_ver_neg_error);
90
if (status == QUIC_STATUS_CONNECTION_IDLE) return new
QuicException
(QuicError.ConnectionIdle, null, errorCode, SR.net_quic_connection_idle);
91
if (status == QUIC_STATUS_PROTOCOL_ERROR) return new
QuicException
(QuicError.TransportError, null, errorCode, SR.net_quic_protocol_error);
92
if (status == QUIC_STATUS_ALPN_IN_USE) return new
QuicException
(QuicError.AlpnInUse, null, errorCode, SR.net_quic_protocol_error);
143
return new
QuicException
(QuicError.InternalError, null, SR.Format(SR.net_quic_internal_error, GetErrorMessageForStatus(status, message)));
System\Net\Quic\QuicConnection.cs (1)
89
throw new
QuicException
(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, options.HandshakeTimeout));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
252
throw new
QuicException
(QuicError.CallbackError, null, SR.net_quic_callback_error, ex);
System\Net\Quic\QuicListener.cs (2)
294
Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new
QuicException
(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, handshakeTimeout), oce));
315
ExceptionDispatchInfo.SetCurrentStackTrace(new
QuicException
(QuicError.CallbackError, null, SR.net_quic_callback_error, ex)) :
69 references to QuicException
IIS.FunctionalTests (8)
Http3Tests.cs (8)
124
var
qex = Assert.IsType<
QuicException
>(ex.InnerException);
140
var
qex = Assert.IsType<
QuicException
>(ex.InnerException?.InnerException?.InnerException);
157
var
qex = Assert.IsType<
QuicException
>(ex.InnerException?.InnerException?.InnerException);
171
var
qex = Assert.IsType<
QuicException
>(ex.InnerException);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
Http3Tests.cs (8)
177
var
qex = Assert.IsType<
QuicException
>(ex.InnerException);
210
var
qex = Assert.IsType<
QuicException
>(ex.InnerException?.InnerException?.InnerException);
236
var
qex = Assert.IsType<
QuicException
>(ex.InnerException?.InnerException?.InnerException);
257
var
qex = Assert.IsType<
QuicException
>(ex.InnerException);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (11)
Internal\QuicConnectionContext.cs (3)
131
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
147
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
162
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionTimeout)
Internal\QuicConnectionListener.cs (2)
128
catch (
QuicException
e) when (e.QuicError == QuicError.AlpnInUse)
176
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
Internal\QuicStreamContext.cs (6)
273
catch (
QuicException
ex) when (ex.QuicError is QuicError.StreamAborted or QuicError.ConnectionAborted)
284
catch (
QuicException
ex) when (ex.QuicError is QuicError.ConnectionIdle)
292
catch (
QuicException
ex) when (ex.QuicError is QuicError.OperationAborted)
434
catch (
QuicException
ex) when (ex.QuicError is QuicError.StreamAborted or QuicError.ConnectionAborted)
445
catch (
QuicException
ex) when (ex.QuicError is QuicError.ConnectionIdle)
453
catch (
QuicException
ex) when (ex.QuicError is QuicError.OperationAborted)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (15)
QuicConnectionContextTests.cs (9)
68
var ex = await ExceptionAssert.ThrowsAsync<
QuicException
>(
139
var
innerEx = Assert.IsType<
QuicException
>(ex.InnerException);
302
var
innerEx = Assert.IsType<
QuicException
>(ex.InnerException);
428
Assert.Equal((long)Http3ErrorCode.InternalError, ((
QuicException
)ex.InnerException).ApplicationErrorCode.Value);
477
Assert.Equal((long)Http3ErrorCode.InternalError, ((
QuicException
)serverEx.InnerException).ApplicationErrorCode.Value);
487
var
clientEx = await Assert.ThrowsAsync<
QuicException
>(() => clientStream.ReadAsync(buffer).AsTask()).DefaultTimeout();
QuicStreamContextTests.cs (6)
281
Assert.Equal((long)Http3ErrorCode.InternalError, ((
QuicException
)ex.InnerException).ApplicationErrorCode.Value);
356
Assert.Equal((long)Http3ErrorCode.InternalError, ((
QuicException
)ex.InnerException).ApplicationErrorCode.Value);
466
var
ex = await Assert.ThrowsAsync<
QuicException
>(() => clientStream.ReadAsync(new byte[1024]).AsTask()).DefaultTimeout();
521
var
clientEx = await Assert.ThrowsAsync<
QuicException
>(() => clientStream.WriteAsync(data).AsTask()).DefaultTimeout();
System.Net.Http (17)
System\Net\Http\HttpProtocolException.cs (1)
51
internal static HttpProtocolException CreateHttp3StreamException(Http3ErrorCode protocolError,
QuicException
innerException)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (10)
195
catch (
QuicException
e) when (e.QuicError != QuicError.OperationAborted) { }
238
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
388
if (t.Exception?.InnerException is
QuicException
ex && ex.QuicError == QuicError.StreamAborted)
396
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
453
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
457
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
495
catch (
QuicException
ex) when (ex.QuicError == QuicError.StreamAborted)
588
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
592
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
689
catch (
QuicException
ex) when (ex.QuicError == QuicError.StreamAborted)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (6)
246
catch (
QuicException
ex) when (ex.QuicError == QuicError.StreamAborted)
269
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
278
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted && _connection.AbortException != null)
1261
case
QuicException
e when (e.QuicError == QuicError.StreamAborted):
1266
case
QuicException
e when (e.QuicError == QuicError.ConnectionAborted):
1273
case
QuicException
e when (e.QuicError == QuicError.OperationAborted && _connection.AbortException != null):
System.Net.Quic (10)
System\Net\Quic\Internal\ThrowHelper.cs (4)
16
internal static
QuicException
GetConnectionAbortedException(long errorCode)
21
internal static
QuicException
GetStreamAbortedException(long errorCode)
26
internal static
QuicException
GetOperationAbortedException(string? message = null)
69
internal static bool IsConnectionAbortedWhenStartingStreamException(Exception ex) => ex is
QuicException
qe && qe.QuicError == QuicError.ConnectionAborted && qe.ApplicationErrorCode is null;
System\Net\Quic\QuicException.cs (4)
14
/// Initializes a new instance of the <see cref='
QuicException
'/> class.
24
/// Initializes a new instance of the <see cref='
QuicException
'/> class.
35
/// Initializes a new instance of the <see cref='
QuicException
'/> class.
46
/// Initializes a new instance of the <see cref='
QuicException
'/> class.
System\Net\Quic\QuicListener.cs (1)
168
/// Also propagates exceptions from failed connection handshake, e.g. <see cref="AuthenticationException"/>, <see cref="
QuicException
"/>.
System\Net\Quic\QuicStream.cs (1)
485
var
exception = ThrowHelper.GetOperationAbortedException(SR.net_quic_writing_aborted);