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.
Extends
Properties
ABORT_ERR
readonly ABORT_ERR: 20;
Inherited from
cause?
optional cause?: unknown;
Inherited from
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
Inherited from
DATA_CLONE_ERR
readonly DATA_CLONE_ERR: 25;
Inherited from
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.
HIERARCHY_REQUEST_ERR
readonly HIERARCHY_REQUEST_ERR: 3;
Inherited from
DOMException.HIERARCHY_REQUEST_ERR
INDEX_SIZE_ERR
readonly INDEX_SIZE_ERR: 1;
Inherited from
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.
Inherited from
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.
Inherited from
NAMESPACE_ERR
readonly NAMESPACE_ERR: 14;
Inherited from
NETWORK_ERR
readonly NETWORK_ERR: 19;
Inherited from
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
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.
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.
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.
SECURITY_ERR
readonly SECURITY_ERR: 18;
Inherited from
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.
stack?
optional stack?: string;
Inherited from
SYNTAX_ERR
readonly SYNTAX_ERR: 12;
Inherited from
TIMEOUT_ERR
readonly TIMEOUT_ERR: 23;
Inherited from
TYPE_MISMATCH_ERR
readonly TYPE_MISMATCH_ERR: 17;
Inherited from
DOMException.TYPE_MISMATCH_ERR
URL_MISMATCH_ERR
readonly URL_MISMATCH_ERR: 21;
Inherited from
VALIDATION_ERR
readonly VALIDATION_ERR: 16;
Inherited from
WRONG_DOCUMENT_ERR
readonly WRONG_DOCUMENT_ERR: 4;