15 instantiations of QuicException
InMemory.FunctionalTests (1)
Http3\Http3ConnectionTests.cs (1)
767
throw new System.Net.Quic.
QuicException
(
System.Net.Quic (14)
System\Net\Quic\Internal\ThrowHelper.cs (10)
20
return new
QuicException
(QuicError.ConnectionAborted, errorCode, SR.Format(SR.net_quic_connectionaborted, errorCode));
25
return new
QuicException
(QuicError.StreamAborted, errorCode, SR.Format(SR.net_quic_streamaborted, errorCode));
30
return new
QuicException
(QuicError.OperationAborted, null, message ?? SR.net_quic_operationaborted);
73
if (status == QUIC_STATUS_CONNECTION_REFUSED) return new
QuicException
(QuicError.ConnectionRefused, null, errorCode, SR.net_quic_connection_refused);
74
if (status == QUIC_STATUS_CONNECTION_TIMEOUT) return new
QuicException
(QuicError.ConnectionTimeout, null, errorCode, SR.net_quic_timeout);
75
if (status == QUIC_STATUS_VER_NEG_ERROR) return new
QuicException
(QuicError.VersionNegotiationError, null, errorCode, SR.net_quic_ver_neg_error);
76
if (status == QUIC_STATUS_CONNECTION_IDLE) return new
QuicException
(QuicError.ConnectionIdle, null, errorCode, SR.net_quic_connection_idle);
77
if (status == QUIC_STATUS_PROTOCOL_ERROR) return new
QuicException
(QuicError.TransportError, null, errorCode, SR.net_quic_protocol_error);
78
if (status == QUIC_STATUS_ALPN_IN_USE) return new
QuicException
(QuicError.AlpnInUse, null, errorCode, SR.net_quic_alpn_in_use);
129
return new
QuicException
(QuicError.InternalError, null, SR.Format(SR.net_quic_internal_error, GetErrorMessageForStatus(status, message)));
System\Net\Quic\QuicConnection.cs (1)
95
throw new
QuicException
(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, options.HandshakeTimeout));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
255
throw new
QuicException
(QuicError.CallbackError, null, SR.net_quic_callback_error, ex);
System\Net\Quic\QuicListener.cs (2)
276
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)) :
71 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 (19)
System\Net\Http\HttpProtocolException.cs (1)
51
internal static HttpProtocolException CreateHttp3StreamException(Http3ErrorCode protocolError,
QuicException
innerException)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (10)
276
catch (
QuicException
e) when (e.QuicError != QuicError.OperationAborted)
325
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
473
if (t.Exception?.InnerException is
QuicException
ex && ex.QuicError == QuicError.StreamAborted)
481
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
538
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
542
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
580
catch (
QuicException
ex) when (ex.QuicError == QuicError.StreamAborted)
673
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted)
677
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
774
catch (
QuicException
ex) when (ex.QuicError == QuicError.StreamAborted)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (8)
271
catch (
QuicException
ex) when (ex.QuicError == QuicError.StreamAborted)
294
catch (
QuicException
ex) when (ex.QuicError == QuicError.ConnectionAborted)
303
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted && cancellationToken.IsCancellationRequested)
309
catch (
QuicException
ex) when (ex.QuicError == QuicError.OperationAborted && _connection.AbortException != null)
1291
case
QuicException
e when (e.QuicError == QuicError.StreamAborted):
1296
case
QuicException
e when (e.QuicError == QuicError.ConnectionAborted):
1303
case
QuicException
e when (e.QuicError == QuicError.OperationAborted && _connection.AbortException != null):
1310
case
QuicException
e when (e.QuicError == QuicError.OperationAborted && cancellationToken.IsCancellationRequested):
System.Net.Quic (10)
System\Net\Quic\Internal\ThrowHelper.cs (3)
18
internal static
QuicException
GetConnectionAbortedException(long errorCode)
23
internal static
QuicException
GetStreamAbortedException(long errorCode)
28
internal static
QuicException
GetOperationAbortedException(string? message = null)
System\Net\Quic\QuicConnection.cs (1)
550
if (ex is
QuicException
qex && qex.QuicError == QuicError.InternalError &&
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)
172
/// Also propagates exceptions from failed connection handshake, e.g. <see cref="AuthenticationException"/>, <see cref="
QuicException
"/>.
System\Net\Quic\QuicStream.cs (1)
494
var
exception = ThrowHelper.GetOperationAbortedException(SR.net_quic_writing_aborted);