SensorErrorEvent()

The SensorErrorEvent constructor creates a new SensorErrorEvent object which provides information about errors thrown by any of the interfaces based on Sensor.

Syntax

sensorErrorEvent = new SensorErrorEvent(type, {error: domException});

Parameters

type

Will always be 'SensorErrorEvent'.

options Optional

Currently only one option is supported:

Specifications

Specification
Generic Sensor API
# dom-sensorerrorevent-sensorerrorevent

Browser compatibility

BCD tables only load in the browser