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

Интерфейс PositionError представляет причину ошибки, возникающую при использовании устройства геолокации.

+ +

Свойства

+ +

Интерфейс PositionError не наследует никаких свойств.

+ +
+
{{domxref("PositionError.code")}} {{readonlyInline}} {{securecontext_inline}}
+
Возвращает unsigned short, представляющий код ошибки. Возможны следующие значения: + + + + + + + + + + + + + + + + + + + + + + + +
ЗначениеСвязанная константаОписание
1PERMISSION_DENIEDНе удалось получить информацию о геолокации, поскольку у страницы не было разрешения на это.
2POSITION_UNAVAILABLEНе удалось получить геолокацию, поскольку по крайней мере один внутренний источник позиции вернул внутреннюю ошибку.
3TIMEOUTВремя, разрешенное для получения геолокации, определяется {{domxref ("PositionOptions.timeout")}} информация была достигнута до получения информации.
+
+
{{domxref("PositionError.message")}} {{readonlyInline}} {{securecontext_inline}}
+
Returns a human-readable {{domxref("DOMString")}} describing the details of the error. Specifications note that this is primarily intended for debugging use and not to be shown directly in a user interface.
+
+ +

Methods

+ +

The PositionError interface neither implements nor inherits any method.

+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Geolocation', '#position_error_interface', 'PositionError')}}{{Spec2('Geolocation')}}Initial specification.
+ +

Browser compatibility

+ + + +

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

+ +

See also

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