From 1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:24 +0200 Subject: convert content to md --- files/fr/web/api/geolocationpositionerror/index.md | 86 +++++++--------------- 1 file changed, 25 insertions(+), 61 deletions(-) (limited to 'files/fr/web/api/geolocationpositionerror') diff --git a/files/fr/web/api/geolocationpositionerror/index.md b/files/fr/web/api/geolocationpositionerror/index.md index 9a7f5a0af1..0a03eb4bee 100644 --- a/files/fr/web/api/geolocationpositionerror/index.md +++ b/files/fr/web/api/geolocationpositionerror/index.md @@ -3,78 +3,42 @@ title: GeolocationPositionError slug: Web/API/GeolocationPositionError translation_of: Web/API/GeolocationPositionError --- -
{{securecontext_header}}{{APIRef("Geolocation API")}}
+{{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.

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

Propriétés

+## Propriétés -

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

+_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.
-
+- {{domxref("GeolocationPositionError.code")}} {{readonlyInline}} {{securecontext_inline}} -

Méthodes

+ - : Retourne un `unsigned short` représentant un code d'erreur. Les valeurs possibles sont: -

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

+ | Valeur | Constante associée | Description | + | ------ | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | + | `1` | `PERMISSION_DENIED` | L’acquisition de la position échoue car la page n'a pas l'autorisation de le faire. | + | `2` | `POSITION_UNAVAILABLE` | L’acquisition de la localisation échoue car au moins une source donnant la position a retourné une erreur interne. | + | `3` | `TIMEOUT` | Le temps alloué pour obtenir la position défini par {{domxref("PositionOptions.timeout")}} est écoulé avant que l'information soit obtenu. | -

Spécifications

+- {{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. - - - - - - - - - - - - - - - -
SpécificationStatutCommentaires
{{SpecName('Geolocation', '#position_error_interface', 'GeolocationPositionError')}}{{Spec2('Geolocation')}}Définition initiale.
+## Méthodes -

Compatibilité des navigateurs

+**L'interface* `GeolocationPositionError` *n'implémente et n'hérite d'aucune méthode.** +## Spécifications +| Spécification | Statut | Commentaires | +| ---------------------------------------------------------------------------------------------------------------- | -------------------------------- | -------------------- | +| {{SpecName('Geolocation', '#position_error_interface', 'GeolocationPositionError')}} | {{Spec2('Geolocation')}} | Définition initiale. | -

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

+## Compatibilité des navigateurs -

Voir aussi

+{{Compat("api.GeolocationPositionError")}} - +## Voir aussi + +- [Utiliser l'API de géolocalisation](/fr/docs/Web/API/Geolocation_API/Using) +- {{domxref("Geolocation")}} -- cgit v1.2.3-54-g00ecf