Skip to main content

RTCError

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

MDN Reference

Extends

Properties

ABORT_ERR

readonly ABORT_ERR: 20;

Inherited from

DOMException.ABORT_ERR


cause?

optional cause?: unknown;

Inherited from

DOMException.cause


code

readonly code: number;

The code read-only property of the DOMException interface returns one of the legacy error code constants, or 0 if none match.

Deprecated

MDN Reference

Inherited from

DOMException.code


DATA_CLONE_ERR

readonly DATA_CLONE_ERR: 25;

Inherited from

DOMException.DATA_CLONE_ERR


DOMSTRING_SIZE_ERR

readonly DOMSTRING_SIZE_ERR: 2;

Inherited from

DOMException.DOMSTRING_SIZE_ERR


errorDetail

readonly errorDetail: RTCErrorDetailType;

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

MDN Reference


HIERARCHY_REQUEST_ERR

readonly HIERARCHY_REQUEST_ERR: 3;

Inherited from

DOMException.HIERARCHY_REQUEST_ERR


INDEX_SIZE_ERR

readonly INDEX_SIZE_ERR: 1;

Inherited from

DOMException.INDEX_SIZE_ERR


INUSE_ATTRIBUTE_ERR

readonly INUSE_ATTRIBUTE_ERR: 10;

Inherited from

DOMException.INUSE_ATTRIBUTE_ERR


INVALID_ACCESS_ERR

readonly INVALID_ACCESS_ERR: 15;

Inherited from

DOMException.INVALID_ACCESS_ERR


INVALID_CHARACTER_ERR

readonly INVALID_CHARACTER_ERR: 5;

Inherited from

DOMException.INVALID_CHARACTER_ERR


INVALID_MODIFICATION_ERR

readonly INVALID_MODIFICATION_ERR: 13;

Inherited from

DOMException.INVALID_MODIFICATION_ERR


INVALID_NODE_TYPE_ERR

readonly INVALID_NODE_TYPE_ERR: 24;

Inherited from

DOMException.INVALID_NODE_TYPE_ERR


INVALID_STATE_ERR

readonly INVALID_STATE_ERR: 11;

Inherited from

DOMException.INVALID_STATE_ERR


message

readonly 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.

MDN Reference

Inherited from

DOMException.message


name

readonly name: string;

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

MDN Reference

Inherited from

DOMException.name


NAMESPACE_ERR

readonly NAMESPACE_ERR: 14;

Inherited from

DOMException.NAMESPACE_ERR


NETWORK_ERR

readonly NETWORK_ERR: 19;

Inherited from

DOMException.NETWORK_ERR


NO_DATA_ALLOWED_ERR

readonly NO_DATA_ALLOWED_ERR: 6;

Inherited from

DOMException.NO_DATA_ALLOWED_ERR


NO_MODIFICATION_ALLOWED_ERR

readonly NO_MODIFICATION_ALLOWED_ERR: 7;

Inherited from

DOMException.NO_MODIFICATION_ALLOWED_ERR


NOT_FOUND_ERR

readonly NOT_FOUND_ERR: 8;

Inherited from

DOMException.NOT_FOUND_ERR


NOT_SUPPORTED_ERR

readonly NOT_SUPPORTED_ERR: 9;

Inherited from

DOMException.NOT_SUPPORTED_ERR


QUOTA_EXCEEDED_ERR

readonly QUOTA_EXCEEDED_ERR: 22;

Inherited from

DOMException.QUOTA_EXCEEDED_ERR


receivedAlert

readonly receivedAlert: number | null;

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

MDN Reference


sctpCauseCode

readonly sctpCauseCode: number | null;

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

MDN Reference


sdpLineNumber

readonly sdpLineNumber: number | null;

The RTCError interface's read-only property sdpLineNumber specifies the line number within the SDP at which a syntax error occurred while parsing it.

MDN Reference


SECURITY_ERR

readonly SECURITY_ERR: 18;

Inherited from

DOMException.SECURITY_ERR


sentAlert

readonly sentAlert: number | null;

The read-only sentAlert property in an RTCError object specifies the DTLS alert number occurred while sending data to the remote peer, if the error represents an outbound DTLS error.

MDN Reference


stack?

optional stack?: string;

Inherited from

DOMException.stack


SYNTAX_ERR

readonly SYNTAX_ERR: 12;

Inherited from

DOMException.SYNTAX_ERR


TIMEOUT_ERR

readonly TIMEOUT_ERR: 23;

Inherited from

DOMException.TIMEOUT_ERR


TYPE_MISMATCH_ERR

readonly TYPE_MISMATCH_ERR: 17;

Inherited from

DOMException.TYPE_MISMATCH_ERR


URL_MISMATCH_ERR

readonly URL_MISMATCH_ERR: 21;

Inherited from

DOMException.URL_MISMATCH_ERR


VALIDATION_ERR

readonly VALIDATION_ERR: 16;

Inherited from

DOMException.VALIDATION_ERR


WRONG_DOCUMENT_ERR

readonly WRONG_DOCUMENT_ERR: 4;

Inherited from

DOMException.WRONG_DOCUMENT_ERR