From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../fr/web/api/geolocationpositionerror/index.html | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 files/fr/web/api/geolocationpositionerror/index.html (limited to 'files/fr/web/api/geolocationpositionerror/index.html') diff --git a/files/fr/web/api/geolocationpositionerror/index.html b/files/fr/web/api/geolocationpositionerror/index.html new file mode 100644 index 0000000000..541799629c --- /dev/null +++ b/files/fr/web/api/geolocationpositionerror/index.html @@ -0,0 +1,80 @@ +--- +title: GeolocationPositionError +slug: Web/API/GeolocationPositionError +translation_of: Web/API/GeolocationPositionError +--- +
{{securecontext_header}}{{APIRef("Geolocation API")}}
+ +

L'interface GeolocationPositionError représente la raison de l'erreur apparue lorsque l'on utilise la géolocalisation de l'appareil.

+ +

Propriétés

+ +

L'interface GeolocationPositionError n'hérite d'aucune propriété.

+ +
+
{{domxref("GeolocationPositionError.code")}} {{readonlyInline}} {{securecontext_inline}}
+
Retourne un unsigned short représentant un code d'erreur. Les valeurs possibles sont: + + + + + + + + + + + + + + + + + + + + + + + +
ValeurConstante associéeDescription
1PERMISSION_DENIEDL’acquisition de la position échoue car la page n'a pas l'autorisation de le faire.
2POSITION_UNAVAILABLEL’acquisition de la localisation échoue car au moins une source donnant la position a retourné une erreur interne.
3TIMEOUTLe temps alloué pour obtenir la position défini par {{domxref("PositionOptions.timeout")}} est écoulé avant que l'information soit obtenu.
+
+
{{domxref("GeolocationPositionError.message")}} {{readonlyInline}} {{securecontext_inline}}
+
Retourne une {{domxref("DOMString")}} compréhensible par un humain décrivant les détails de l'erreur. Les spécifications indiquent que cela sert au débogage et ne doit pas être directement affiché à l'utilisateur.
+
+ +

Méthodes

+ +

L'interface GeolocationPositionError n'implémente et n'hérite d'aucune méthode.

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaires
{{SpecName('Geolocation', '#position_error_interface', 'GeolocationPositionError')}}{{Spec2('Geolocation')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.GeolocationPositionError")}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf