Class PositionError
java.lang.Object
java.lang.Throwable
com.google.gwt.geolocation.client.PositionError
- All Implemented Interfaces:
Serializable
Represents an error that occurred while trying to get the user's current
position.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The user declined access to their position to this application.static final int
The browser was unable to locate the user.static final int
The browser was unable to locate the user in enough time.static final int
An unknown error occurred. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Returns the error code associated with this error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
UNKNOWN_ERROR
public static final int UNKNOWN_ERRORAn unknown error occurred.- See Also:
-
PERMISSION_DENIED
public static final int PERMISSION_DENIEDThe user declined access to their position to this application.- See Also:
-
POSITION_UNAVAILABLE
public static final int POSITION_UNAVAILABLEThe browser was unable to locate the user.- See Also:
-
TIMEOUT
public static final int TIMEOUTThe browser was unable to locate the user in enough time.- See Also:
-
-
Constructor Details
-
PositionError
PositionError(int code, String message)
-
-
Method Details
-
getCode
public int getCode()Returns the error code associated with this error.
-