MsQuicException Class
The exception that MsQuic operations throw when the connection, a stream or a datagram fails.
public sealed class MsQuicException : IOException- Inheritance
IOExceptionMsQuicException
Constructors
| Name | Description |
|---|---|
| MsQuicException() | Initializes a new instance of the MsQuicException class. |
| MsQuicException(MsQuicError, long?, long?, string) | Initializes a new instance of the MsQuicException class. |
| MsQuicException(MsQuicError, long?, long?, string, Exception?) | Initializes a new instance of the MsQuicException class. |
| MsQuicException(string) | Initializes a new instance of the MsQuicException class. |
| MsQuicException(string, Exception?) | Initializes a new instance of the MsQuicException class. |
MsQuicException overloads
MsQuicException()
MsQuicException.csInitializes a new instance of the MsQuicException class.
public MsQuicException()MsQuicException(MsQuicError, long?, long?, string)
MsQuicException.csInitializes a new instance of the MsQuicException class.
public MsQuicException(MsQuicError error, long? applicationErrorCode, long? transportErrorCode, string message)Parameters
errorMsQuicErrorapplicationErrorCodelong?transportErrorCodelong?messagestring
MsQuicException(MsQuicError, long?, long?, string, Exception?)
MsQuicException.csInitializes a new instance of the MsQuicException class.
public MsQuicException(MsQuicError error, long? applicationErrorCode, long? transportErrorCode, string message, Exception? innerException)Parameters
errorMsQuicErrorapplicationErrorCodelong?transportErrorCodelong?messagestringinnerExceptionException?
MsQuicException(string)
MsQuicException.csInitializes a new instance of the MsQuicException class.
public MsQuicException(string message)Parameters
messagestring
MsQuicException(string, Exception?)
MsQuicException.csInitializes a new instance of the MsQuicException class.
Parameters
messagestringinnerExceptionException?
Properties
| Name | Description |
|---|---|
| ApplicationErrorCode | Gets the application error code the peer sent when it closed the connection or aborted the stream. |
| Error | Gets the kind of error. |
| NativeErrorCode | Gets the QUIC_STATUS value MsQuic returned, if any. It depends on the operating system. |
| TransportErrorCode | Gets the QUIC transport error code (RFC 9000, section 20.1) of a connection closed by the transport. |