SensorErrorEvent

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The SensorErrorEvent interface of the Sensor APIs provides information about errors thrown by a Sensor or derived interface.

Event SensorErrorEvent

Constructor

SensorErrorEvent()

Creates a new SensorErrorEvent object.

Instance properties

SensorErrorEvent.error Read only

Returns the DOMException object passed in the event's constructor.

Specifications

Specification
Generic Sensor API
# the-sensor-error-event-interface

Browser compatibility

BCD tables only load in the browser