You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="message">The message for the exception.</param>
29
40
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
/// Initializes a new instance of the <see cref='QuicException'/> class.
47
+
/// </summary>
48
+
/// <param name="error">The error associated with the exception.</param>
49
+
/// <param name="applicationErrorCode">The application protocol error code associated with the error.</param>
50
+
/// <param name="transportErrorCode">The transport protocol error code associated with the error.</param>
51
+
/// <param name="message">The message for the exception.</param>
52
+
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
/// 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.
47
71
/// </remarks>
48
72
publiclong?ApplicationErrorCode{get;}
73
+
74
+
/// <summary>
75
+
/// The transport protocol error code associated with the error.
(shutdownByApp:false,closedRemotely:true)=>ThrowHelper.GetExceptionForMsQuicStatus(data.ConnectionCloseStatus,$"Shutdown by transport {data.ConnectionErrorCode}"),
584
+
(shutdownByApp:false,closedRemotely:true)=>ThrowHelper.GetExceptionForMsQuicStatus(data.ConnectionCloseStatus,(long)data.ConnectionErrorCode,$"Shutdown by transport {data.ConnectionErrorCode}"),
587
585
// It's local shutdown by transport, most likely due to a timeout, throw error based on the status.
588
-
// TODO: we should propagate the transport error code
0 commit comments