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.
SensorErrorEvent()Creates a new SensorErrorEvent object.
SensorErrorEvent.error Read onlyReturns the DOMException object passed in the event's constructor.