Class PositionError

java.lang.Object
java.lang.Throwable
com.google.gwt.geolocation.client.PositionError
All Implemented Interfaces:
Serializable

public final class PositionError extends Throwable
Represents an error that occurred while trying to get the user's current position.
See Also:
  • Field Details

    • UNKNOWN_ERROR

      public static final int UNKNOWN_ERROR
      An unknown error occurred.
      See Also:
    • PERMISSION_DENIED

      public static final int PERMISSION_DENIED
      The user declined access to their position to this application.
      See Also:
    • POSITION_UNAVAILABLE

      public static final int POSITION_UNAVAILABLE
      The browser was unable to locate the user.
      See Also:
    • TIMEOUT

      public static final int TIMEOUT
      The 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.