WebTransportException Class
The exception that WebTransport sessions and streams throw.
public sealed class WebTransportException : IOException- Inheritance
IOExceptionWebTransportException
Constructors
| Name | Description |
|---|---|
| WebTransportException() | Initializes a new instance of the WebTransportException class. |
| WebTransportException(WebTransportError, string, Exception?) | Initializes a new instance of the WebTransportException class. |
| WebTransportException(string) | Initializes a new instance of the WebTransportException class. |
| WebTransportException(string, Exception?) | Initializes a new instance of the WebTransportException class. |
WebTransportException overloads
WebTransportException()
WebTransportException.csInitializes a new instance of the WebTransportException class.
public WebTransportException()WebTransportException(WebTransportError, string, Exception?)
WebTransportException.csInitializes a new instance of the WebTransportException class.
public WebTransportException(WebTransportError error, string message, Exception? innerException = null)Parameters
errorWebTransportErrormessagestringinnerExceptionException?
WebTransportException(string)
WebTransportException.csInitializes a new instance of the WebTransportException class.
public WebTransportException(string message)Parameters
messagestring
WebTransportException(string, Exception?)
WebTransportException.csInitializes a new instance of the WebTransportException class.
Parameters
messagestringinnerExceptionException?
Properties
| Name | Description |
|---|---|
| Error | Gets the kind of error. |
| StatusCode | Gets the HTTP status code of a rejected session. |
| StreamErrorCode | Gets the application error code (0 to 2^32-1) of a stream the peer aborted. It is null when the peer used an HTTP/3 error code that does not map to a WebTransport code. |