Class PositionError

java.lang.Object
org.loboevolution.html.js.geolocation.PositionError

public final class PositionError extends Object
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 Details

    • PERMISSION_DENIED

      public static final short PERMISSION_DENIED
      Error code used to convey "permission denied" error.
      See Also:
    • POSITION_UNAVAILABLE

      public static final short POSITION_UNAVAILABLE
      Error code used to convey "position unavailable" error.
      See Also:
    • TIMEOUT

      public static final short TIMEOUT
      Error 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.