nsIDOMGeoPositionError

Table of contents

  1. 1. Attributes
  2. 2. Error constants
  3. 3. See also
Table of contents
  1. 1. Attributes
  2. 2. Error constants
  3. 3. See also

Introduced in Gecko 1.9.1

(Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)

The nsIDOMGeoPositionError interface represents an error that occurred while performing geolocation operations.

 Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)

Please update this interface to use the IFSummary template.

Inherits from: nsISupports

Attributes

Attribute Type Description
code short Numerical error code; see Error constants for a complete list. Read only.
message DOMString Human readable error message. Read only. Obsolete

Gecko 1.9.2 note

The message attribute was removed in Gecko 1.9.2 (Firefox 3.6).

Error constants

Constant Value Description
PERMISSION_DENIED 1 The user denied permission to retrieve location data.
POSITION_UNAVAILABLE 2 Unable to access location data.
TIMEOUT 3 A timeout occurred while trying to retrieve location data.

See also

Tags (6)

Edit tags

Attachments (0)

 

Attach file