Class PositionError
java.lang.Object
org.loboevolution.html.js.geolocation.PositionError
The PositionError class provides a way to provide error when the position
cannot be calculated due to any reason. An object of this class is created by the
Geolocation object and is provided to the calling application via the
PositionCallback interface.
Note: This class must not have any sub-classes to ensure W3C Specifications are being
strictly followed by the system or application that uses this geolocation package. These
specifications are avilable at ...
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
Error code used to convey "permission denied" error.static final short
Error code used to convey "position unavailable" error.static final short
Error code used to convey "timeout" error. -
Constructor Summary
ConstructorDescriptionPositionError
(short code) Constructs an instance of PositionError class using only the error code; Sets the error message to null. -
Method Summary
-
Field Details
-
PERMISSION_DENIED
public static final short PERMISSION_DENIEDError code used to convey "permission denied" error.- See Also:
-
POSITION_UNAVAILABLE
public static final short POSITION_UNAVAILABLEError code used to convey "position unavailable" error.- See Also:
-
TIMEOUT
public static final short TIMEOUTError code used to convey "timeout" error.- See Also:
-
-
Constructor Details
-
PositionError
public PositionError(short code) Constructs an instance of PositionError class using only the error code; Sets the error message to null.- Parameters:
code
- the error code.
-