11.3 RTCErrorEvent Interface

The RTCErrorEvent interface is defined for cases when an RTCError is raised as an event:

  1. WebIDL[Exposed=Window]
  2. interface RTCErrorEvent : Event {
  3. constructor(DOMString type, RTCErrorEventInit eventInitDict);
  4. [SameObject] readonly attribute RTCError error;
  5. };

11.3.1 Constructors

constructor()

Constructs a new RTCErrorEvent.

11.3.2 Attributes

error of type RTCError, readonly

The RTCError describing the error that triggered the event.