14 instantiations of QuicException
System.Net.Quic (14)
System\Net\Quic\Internal\ThrowHelper.cs (10)
20return new QuicException(QuicError.ConnectionAborted, errorCode, SR.Format(SR.net_quic_connectionaborted, errorCode)); 25return new QuicException(QuicError.StreamAborted, errorCode, SR.Format(SR.net_quic_streamaborted, errorCode)); 30return new QuicException(QuicError.OperationAborted, null, message ?? SR.net_quic_operationaborted); 73if (status == QUIC_STATUS_CONNECTION_REFUSED) return new QuicException(QuicError.ConnectionRefused, null, errorCode, SR.net_quic_connection_refused); 74if (status == QUIC_STATUS_CONNECTION_TIMEOUT) return new QuicException(QuicError.ConnectionTimeout, null, errorCode, SR.net_quic_timeout); 75if (status == QUIC_STATUS_VER_NEG_ERROR) return new QuicException(QuicError.VersionNegotiationError, null, errorCode, SR.net_quic_ver_neg_error); 76if (status == QUIC_STATUS_CONNECTION_IDLE) return new QuicException(QuicError.ConnectionIdle, null, errorCode, SR.net_quic_connection_idle); 77if (status == QUIC_STATUS_PROTOCOL_ERROR) return new QuicException(QuicError.TransportError, null, errorCode, SR.net_quic_protocol_error); 78if (status == QUIC_STATUS_ALPN_IN_USE) return new QuicException(QuicError.AlpnInUse, null, errorCode, SR.net_quic_alpn_in_use); 129return new QuicException(QuicError.InternalError, null, SR.Format(SR.net_quic_internal_error, GetErrorMessageForStatus(status, message)));
System\Net\Quic\QuicConnection.cs (1)
96throw new QuicException(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, options.HandshakeTimeout));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
255throw new QuicException(QuicError.CallbackError, null, SR.net_quic_callback_error, ex);
System\Net\Quic\QuicListener.cs (2)
278Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, handshakeTimeout), oce)); 317ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.CallbackError, null, SR.net_quic_callback_error, ex)) :
43 references to QuicException
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (11)
Internal\QuicConnectionContext.cs (3)
131catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 147catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 162catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionTimeout)
Internal\QuicConnectionListener.cs (2)
128catch (QuicException e) when (e.QuicError == QuicError.AlpnInUse) 176catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted)
Internal\QuicStreamContext.cs (6)
273catch (QuicException ex) when (ex.QuicError is QuicError.StreamAborted or QuicError.ConnectionAborted) 284catch (QuicException ex) when (ex.QuicError is QuicError.ConnectionIdle) 292catch (QuicException ex) when (ex.QuicError is QuicError.OperationAborted) 434catch (QuicException ex) when (ex.QuicError is QuicError.StreamAborted or QuicError.ConnectionAborted) 445catch (QuicException ex) when (ex.QuicError is QuicError.ConnectionIdle) 453catch (QuicException ex) when (ex.QuicError is QuicError.OperationAborted)
System.Net.Http (22)
System\Net\Http\HttpProtocolException.cs (1)
51internal static HttpProtocolException CreateHttp3StreamException(Http3ErrorCode protocolError, QuicException innerException)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (10)
303catch (QuicException e) when (e.QuicError != QuicError.OperationAborted) 341catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 493if (t.Exception?.InnerException is QuicException ex && ex.QuicError == QuicError.StreamAborted) 501catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 558catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 562catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 605catch (QuicException ex) when (ex.QuicError == QuicError.StreamAborted) 685catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 689catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 786catch (QuicException ex) when (ex.QuicError == QuicError.StreamAborted)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (11)
247catch (QuicException qex) when (qex.QuicError == QuicError.StreamAborted && qex.ApplicationErrorCode == (long)Http3ErrorCode.NoError) 291catch (QuicException ex) when (ex.QuicError == QuicError.StreamAborted) 314catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 323catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted && cancellationToken.IsCancellationRequested) 329catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted && _connection.AbortException != null) 338catch (QuicException ex) 516catch (HttpRequestException hex) when (hex.InnerException is QuicException qex && qex.QuicError == QuicError.StreamAborted && qex.ApplicationErrorCode == (long)Http3ErrorCode.NoError) 1346case QuicException e when (e.QuicError == QuicError.StreamAborted): 1351case QuicException e when (e.QuicError == QuicError.ConnectionAborted): 1358case QuicException e when (e.QuicError == QuicError.OperationAborted && _connection.AbortException != null): 1365case QuicException e when (e.QuicError == QuicError.OperationAborted && cancellationToken.IsCancellationRequested):
System.Net.Quic (10)
System\Net\Quic\Internal\ThrowHelper.cs (3)
18internal static QuicException GetConnectionAbortedException(long errorCode) 23internal static QuicException GetStreamAbortedException(long errorCode) 28internal static QuicException GetOperationAbortedException(string? message = null)
System\Net\Quic\QuicConnection.cs (1)
548if (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)
174/// Also propagates exceptions from failed connection handshake, e.g. <see cref="AuthenticationException"/>, <see cref="QuicException"/>.
System\Net\Quic\QuicStream.cs (1)
531var exception = ThrowHelper.GetOperationAbortedException(SR.net_quic_writing_aborted);