ReadonlycodeThe code read-only property of the GeolocationPositionError interface is an unsigned short representing the error code.
ReadonlymessageThe message read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error.
ReadonlyPERMISSION_ReadonlyPOSITION_ReadonlyTIMEOUT
The
GeolocationPositionErrorinterface represents the reason of an error occurring when using the geolocating device.MDN Reference