From 0e6c4298bebd025a4358fe34826798a92804363b Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Thu, 3 Feb 2022 01:49:20 +0900 Subject: GeolocationPositionError インターフェイスの記事を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/api/geolocationpositionerror/index.md | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 files/ja/web/api/geolocationpositionerror/index.md (limited to 'files/ja/web/api/geolocationpositionerror/index.md') diff --git a/files/ja/web/api/geolocationpositionerror/index.md b/files/ja/web/api/geolocationpositionerror/index.md new file mode 100644 index 0000000000..10fe4e17d5 --- /dev/null +++ b/files/ja/web/api/geolocationpositionerror/index.md @@ -0,0 +1,84 @@ +--- +title: PositionError +slug: Web/API/GeolocationPositionError +tags: + - API + - Geolocation API + - Interface + - PositionError + - Secure context +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}}
+
人間が読める形のエラー詳細を {{domxref("DOMString")}} 型の文字列で返します。この文字列はデバッグ用のものであって直接ユーザーに見せるものではないと、仕様書では言及されています。
+
+ +

メソッド

+ +

PositionError インターフェイスが実装・継承するメソッドはありません

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様書策定状況コメント
{{SpecName('Geolocation', '#position_error_interface', 'PositionError')}}{{Spec2('Geolocation')}}初期定義
+ +

ブラウザ実装状況

+ +

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

+ +

関連情報

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