Back to Content

SensorErrorEvent

files/en-us/web/api/sensorerrorevent/index.md

latest640 B
Original Source

{{securecontext_header}}{{APIRef("Sensor API")}}

The SensorErrorEvent interface of the Sensor APIs provides information about errors thrown by a {{domxref('Sensor')}} or derived interface.

{{InheritanceDiagram}}

Constructor

  • {{domxref("SensorErrorEvent.SensorErrorEvent", "SensorErrorEvent()")}}
    • : Creates a new SensorErrorEvent object.

Instance properties

  • {{domxref('SensorErrorEvent.error')}} {{ReadOnlyInline}}
    • : Returns the {{domxref('DOMException')}} object passed in the event's constructor.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}