55 references to QuicError
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (13)
Internal\QuicConnectionContext.cs (3)
132
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
148
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
163
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 (8)
275
catch (QuicException ex) when (ex.QuicError is
QuicError
.StreamAborted or
QuicError
.ConnectionAborted)
286
catch (QuicException ex) when (ex.QuicError is
QuicError
.ConnectionIdle)
294
catch (QuicException ex) when (ex.QuicError is
QuicError
.OperationAborted)
437
catch (QuicException ex) when (ex.QuicError is
QuicError
.StreamAborted or
QuicError
.ConnectionAborted)
448
catch (QuicException ex) when (ex.QuicError is
QuicError
.ConnectionIdle)
456
catch (QuicException ex) when (ex.QuicError is
QuicError
.OperationAborted)
System.Net.Http (20)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (10)
307
catch (QuicException e) when (e.QuicError !=
QuicError
.OperationAborted)
345
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
497
if (t.Exception?.InnerException is QuicException ex && ex.QuicError ==
QuicError
.StreamAborted)
505
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
562
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
566
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
609
catch (QuicException ex) when (ex.QuicError ==
QuicError
.StreamAborted)
689
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
693
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
790
catch (QuicException ex) when (ex.QuicError ==
QuicError
.StreamAborted)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (10)
247
catch (QuicException qex) when (qex.QuicError ==
QuicError
.StreamAborted && qex.ApplicationErrorCode == (long)Http3ErrorCode.NoError)
291
catch (QuicException ex) when (ex.QuicError ==
QuicError
.StreamAborted)
314
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
323
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted && cancellationToken.IsCancellationRequested)
329
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted && _connection.AbortException != null)
516
catch (HttpRequestException hex) when (hex.InnerException is QuicException qex && qex.QuicError ==
QuicError
.StreamAborted && qex.ApplicationErrorCode == (long)Http3ErrorCode.NoError)
1346
case QuicException e when (e.QuicError ==
QuicError
.StreamAborted):
1351
case QuicException e when (e.QuicError ==
QuicError
.ConnectionAborted):
1358
case QuicException e when (e.QuicError ==
QuicError
.OperationAborted && _connection.AbortException != null):
1365
case QuicException e when (e.QuicError ==
QuicError
.OperationAborted && cancellationToken.IsCancellationRequested):
System.Net.Quic (22)
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 (2)
96
throw new QuicException(
QuicError
.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, options.HandshakeTimeout));
548
if (ex is QuicException qex && qex.QuicError ==
QuicError
.InternalError &&
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
255
throw new QuicException(
QuicError
.CallbackError, null, SR.net_quic_callback_error, ex);
System\Net\Quic\QuicException.cs (7)
19
public QuicException(
QuicError
error, long? applicationErrorCode, string message)
30
internal QuicException(
QuicError
error, long? applicationErrorCode, long? transportErrorCode, string message)
41
internal QuicException(
QuicError
error, long? applicationErrorCode, string message, Exception? innerException)
53
internal QuicException(
QuicError
error, long? applicationErrorCode, long? transportErrorCode, string message, Exception? innerException)
64
public
QuicError
QuicError { get; }
70
/// This property contains the error code set by the application layer when closing the connection (<see cref="
QuicError
.ConnectionAborted"/>) or closing a read/write direction of a QUIC stream (<see cref="
QuicError
.StreamAborted"/>). Contains null for all other errors.
System\Net\Quic\QuicListener.cs (2)
278
Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(
QuicError
.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, handshakeTimeout), oce));
317
ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(
QuicError
.CallbackError, null, SR.net_quic_callback_error, ex)) :