SensorErrorEvent.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 Status Comment
Unknown
The definition of 'SensorErrorEvent' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser