The geolocation position error returned by the device. It is returned through the
errorCallback
callback function and passes details of an
encountered error.
The table lists the error codes predefined for a PositionError
instance.
Constant | Description | Type | Value |
---|---|---|---|
PERMISSION_DENIED | Returned when a device user does not allow the application to retrieve the position information. This is dependent on the platform. | integer |
1 |
POSITION_UNAVAILABLE | Returned when a device was unable to retrieve the position information. It usually means that the device has no network connectivity and/or cannot get a satellite fix. | integer |
2 |
TIMEOUT | Returned when a device was unable to return a Position object within time specified by the timeout property. | integer |
3 |
Parameter | Description | Type |
---|---|---|
code | One of predefined error codes listed above. | integer |
message | Error message describing the details of the error encountered. | DOMstring |