-
Notifications
You must be signed in to change notification settings - Fork 4
/
406.txt
57 lines (40 loc) · 2.38 KB
/
406.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
* 仕様書
[REFS[
- [1] '''[CITE[Web IDL (Second Edition)]] ([TIME[2015-05-27 01:29:33 +09:00]] 版) <http://heycam.github.io/webidl/#dfn-exception>'''
- [64] [CITE@en-US-x-hixie[HTML Standard]] ([TIME[2014-04-03 03:44:44 +09:00]] 版) <http://www.whatwg.org/specs/web-apps/current-work/#errorevent>
- [8] [CITE@en[Geolocation API Specification]], [TIME[2019-11-24 18:38:51 +09:00]] <https://w3c.github.io/geolocation-api/#position_error_interface>
]REFS]
* 意味
[2] [[例外]]は、[[メッセージ]]を持つことがあります。[[メッセージ]]は、
[[エラー]]の詳細を表す[[人間可読]]な[[利用者エージェント]]定義の値です。 [SRC[>>1]]
* [CODE(DOMi)@en[ErrorEvent]] インターフェイス [CODE(DOMa)@en[message]] 属性
[3] [CODE(DOMi)@en[[[ErrorEvent]]]] [[インターフェイス]]の
[DFN[[CODE(DOMa)@en[[[message]]]]]] [[IDL属性]]は、
エラーの詳細を表す[[人間可読]]な[[利用者エージェント]]定義の値です。
[4] 値は [CODE(IDL)@en[[[DOMString]]]] です [SRC[>>64]]。
[5] 初期値は[[空文字列]]です。
* [CODE[GeolocationPositionError]] インターフェイス [CODE(DOMa)@en[message][message (GeolocationPositionError)]] 属性
[9] [CODE[GeolocationPositionError]]
[[インターフェイス]]の
[DFN[[CODE[message][message (GeolocationPositionError)]]]]
[[IDL属性]]は、
発生したエラーの詳細を説明したエラーメッセージの
[CODE[DOMString]] です。
[SRC[>>8]]
[10]
[[取得器]]は、次のようにしなければ[MUST[なりません]]。
[FIG(steps)[
= [11] [[文脈オブジェクト]]の [F[[CODE[message][message (GeolocationPositionError)]]]] を返します。
]FIG]
[12]
この値は開発者向けのものであって、
[[アプリケーション]]の[[利用者インターフェイス]]に直接使う[SHOULD[べきではありません]]。
[SRC[>>8]]
[13] 値の実例は [CODE[GeolocationPositionError]] 参照。
* 歴史
[6] [CITE@en[Add a message attribute to MediaError]]
([[domenic]]著, [TIME[2017-01-28 04:18:38 +09:00]])
<https://github.com/whatwg/html/commit/76fb18ae0dbe93ad37cf366c1d6d153397f539a7>
[7] [CITE@en[Re-align DOMException objects with what is implemented (#378)]]
([[domenic]]著, [TIME[2017-07-03 03:33:16 +09:00]])
<https://github.com/heycam/webidl/commit/5c8eb310ef7a6bcb3c4813e9791212ee1624f2d3>