RTCError

open class RTCError(init: RTCErrorInit, message: String = definedExternally) : DOMException(source)

The RTCError interface of the WebRTC API describes an error which has occurred while handling RTC operations. It's based upon the standard DOMException interface that describes general DOM errors.

MDN Reference

Constructors

Link copied to clipboard
constructor(init: RTCErrorInit, message: String = definedExternally)

Properties

Link copied to clipboard
expect open external val cause: JsError?
Link copied to clipboard
open external val errorDetail: RTCErrorDetailType

The errorDetail read-only property of the RTCError interface is a string indicating the WebRTC-specific error code that occurred.

Link copied to clipboard
open external override val message: String
Link copied to clipboard
external val name: DOMExceptionName
Link copied to clipboard
open external val receivedAlert: Int?

The receivedAlert read-only property of the RTCError interface specifies the fatal DTLS error which resulted in an alert being received from the remote peer.

Link copied to clipboard
open external val sctpCauseCode: Int?

The sctpCauseCode read-only property of the RTCError interface provides the SCTP cause code explaining why the SCTP negotiation failed, if the RTCError represents an SCTP error.

Link copied to clipboard
open external val sdpLineNumber: Int?

The sdpLineNumber read-only property of the RTCError interface specifies the SDP message line number where a syntax error occurred.

Link copied to clipboard
open external val sentAlert: Int?

The sentAlert read-only property of the RTCError interface specifies the DTLS alert number sent to the remote peer, if the error represents an outbound DTLS error.