WebTransportError

open class WebTransportError(    message: String = definedExternally,     options: WebTransportErrorOptions = definedExternally) : DOMException, Serializable(source)

The WebTransportError interface of the WebTransport API 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 WritableStream.abort() call). Available only in secure contexts.

MDN Reference

Constructors

Link copied to clipboard
constructor(message: String = definedExternally, options: WebTransportErrorOptions = definedExternally)

Properties

Link copied to clipboard
open override val message: String
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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.