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
expect open val cause: JsError?
Link copied to clipboard
open override val message: String

The message read-only property of the DOMException interface returns a string representing a message or description associated with the given error name.

Link copied to clipboard

The name read-only property of the DOMException interface returns a string that contains one of the strings associated with an error name.

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.