Table of Contents

Class WebTransportError

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The WebTransportError interface of the {{domxref("WebTransport API", "WebTransport API", "", "nocode")}} represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a Abort(dynamic) call).

[Value("WebTransportError")]
public class WebTransportError : DOMException
Inheritance
WebTransportError
Inherited Members

Remarks

-Using WebTransport
-{{domxref("WebSockets API", "WebSockets API", "", "nocode")}}
-{{domxref("Streams API", "Streams API", "", "nocode")}}
-WebTransport over HTTP/3

See also on MDN

Constructors

WebTransportError()

public WebTransportError()

WebTransportError(string, WebTransportErrorOptions)

The WebTransportError() constructor creates a new WebTransportError object instance.

public WebTransportError(string message = null, WebTransportErrorOptions options = null)

Parameters

message string
options WebTransportErrorOptions

Remarks

-Using WebTransport
-{{domxref("WebSockets API", "WebSockets API", "", "nocode")}}
-{{domxref("Streams API", "Streams API", "", "nocode")}}
-WebTransport over HTTP/3

See also on MDN

Properties

Source

The source read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.

[Value("source")]
public WebTransportErrorSource Source { get; }

Property Value

WebTransportErrorSource

An enumerated value; can be either stream or session.

Remarks

-Using WebTransport
-{{domxref("WebSockets API", "WebSockets API", "", "nocode")}}
-{{domxref("Streams API", "Streams API", "", "nocode")}}
-WebTransport over HTTP/3

See also on MDN

StreamErrorCode

The streamErrorCode read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or null if one is not available.

[Value("streamErrorCode")]
public ulong? StreamErrorCode { get; }

Property Value

ulong?

A number, or null.

Remarks

-Using WebTransport
-{{domxref("WebSockets API", "WebSockets API", "", "nocode")}}
-{{domxref("Streams API", "Streams API", "", "nocode")}}
-WebTransport over HTTP/3

See also on MDN