aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/geolocationpositionerror/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/geolocationpositionerror/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/geolocationpositionerror/index.html')
-rw-r--r--files/ja/web/api/geolocationpositionerror/index.html157
1 files changed, 157 insertions, 0 deletions
diff --git a/files/ja/web/api/geolocationpositionerror/index.html b/files/ja/web/api/geolocationpositionerror/index.html
new file mode 100644
index 0000000000..3a058b482f
--- /dev/null
+++ b/files/ja/web/api/geolocationpositionerror/index.html
@@ -0,0 +1,157 @@
+---
+title: PositionError
+slug: Web/API/GeolocationPositionError
+tags:
+ - API
+ - Geolocation API
+ - Interface
+ - PositionError
+ - Secure context
+translation_of: Web/API/GeolocationPositionError
+---
+<div>{{securecontext_header}}{{APIRef("Geolocation API")}}</div>
+
+<p><strong><code>PositionError</code></strong> インターフェイスは位置情報の取得時に発生したエラーの理由を表します。</p>
+
+<h2 id="Properties" name="Properties">プロパティ</h2>
+
+<p><em><code>PositionError</code> インターフェイスが継承するプロパティはありません</em>。</p>
+
+<dl>
+ <dt>{{domxref("PositionError.code")}} {{readonlyInline}} {{securecontext_inline}}</dt>
+ <dd><code>unsigned short</code> 型のエラーコードを返します。エラーコードには以下の値が存在します:
+ <table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">値</th>
+ <th scope="col">定数</th>
+ <th scope="col">説明</th>
+ </tr>
+ <tr>
+ <td><code>1</code></td>
+ <td><code>PERMISSION_DENIED</code></td>
+ <td>このページにはアクセス許可がないため、位置情報の取得に失敗しました。</td>
+ </tr>
+ <tr>
+ <td><code>2</code></td>
+ <td><code>POSITION_UNAVAILABLE</code></td>
+ <td>少なくともひとつの位置情報ソースが内部的なエラーを返したため、位置情報の取得に失敗しました。</td>
+ </tr>
+ <tr>
+ <td><code>3</code></td>
+ <td><code>TIMEOUT</code></td>
+ <td>{{domxref("PositionOptions.timeout")}} によって指定された制限時間内に位置情報を取得することができませんでした。</td>
+ </tr>
+ </tbody>
+ </table>
+ </dd>
+ <dt>{{domxref("PositionError.message")}} {{readonlyInline}} {{securecontext_inline}}</dt>
+ <dd>人間が読める形のエラー詳細を {{domxref("DOMString")}} 型の文字列で返します。この文字列はデバッグ用のものであって直接ユーザーに見せるものではないと、仕様書では言及されています。</dd>
+</dl>
+
+<h2 id="Methods" name="Methods">メソッド</h2>
+
+<p><em><code>PositionError</code> インターフェイスが実装・継承するメソッドはありません</em>。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">策定状況</th>
+ <th scope="col">コメント</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Geolocation', '#position_error_interface', 'PositionError')}}</td>
+ <td>{{Spec2('Geolocation')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2>
+
+<p>{{ CompatibilityTable() }}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>機能</th>
+ <th>Chrome</th>
+ <th>Edge</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>基本サポート</td>
+ <td>5</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatGeckoDesktop("1.9.1")}}</td>
+ <td>9</td>
+ <td>10.60<br>
+ Removed in 15.0<br>
+ Reintroduced in 16.0</td>
+ <td>5</td>
+ </tr>
+ <tr>
+ <td>Secure context-only</td>
+ <td>47</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatGeckoDesktop("55")}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>機能</th>
+ <th>Android</th>
+ <th>Chrome for Android</th>
+ <th>Edge</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>基本サポート</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatGeckoMobile("4")}}</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>10.60</td>
+ <td>{{CompatUnknown()}}</td>
+ </tr>
+ <tr>
+ <td>Secure context-only</td>
+ <td>{{CompatNo}}</td>
+ <td>47</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatGeckoDesktop("55")}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li><a href="/ja/docs/WebAPI/Using_geolocation">Geolocation の利用</a></li>
+ <li>{{domxref("Geolocation")}} インターフェイス</li>
+</ul>