aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/eventsource/onerror
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/eventsource/onerror
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/eventsource/onerror')
-rw-r--r--files/ja/web/api/eventsource/onerror/index.html65
1 files changed, 65 insertions, 0 deletions
diff --git a/files/ja/web/api/eventsource/onerror/index.html b/files/ja/web/api/eventsource/onerror/index.html
new file mode 100644
index 0000000000..653eaa868d
--- /dev/null
+++ b/files/ja/web/api/eventsource/onerror/index.html
@@ -0,0 +1,65 @@
+---
+title: EventSource.onerror
+slug: Web/API/EventSource/onerror
+tags:
+ - API
+ - EventSource
+ - Server-sent events
+ - イベントハンドラ
+ - プロパティ
+ - リファレンス
+translation_of: Web/API/EventSource/onerror
+---
+<div>{{APIRef('WebSockets API')}}</div>
+
+<div></div>
+
+<p>{{domxref("EventSource")}} インターフェースの<code><strong>onerror</strong></code> プロパティは、エラーが発生し、<code>EventSource</code> オブジェクトに対して {{event("error")}} が送出されたときに呼び出される {{domxref("EventHandler")}} です。</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox">eventSource.onerror = function</pre>
+
+<h2 id="例">例</h2>
+
+<pre class="brush: js">evtSource.onerror = function() {
+ console.log("EventSource failed.");
+};</pre>
+
+<div class="note">
+<p><strong>メモ</strong>: 完全な例を GitHub から見つけることができます — <a href="https://github.com/mdn/dom-examples/tree/master/server-sent-events" rel="noopener">PHP を用いた簡単な SSE のデモ</a> を参照。</p>
+</div>
+
+<h2 id="仕様">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">ステータス</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', "comms.html#handler-eventsource-onerror", "onerror")}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<ul>
+</ul>
+
+<h2 id="ブラウザ互換性">ブラウザ互換性</h2>
+
+<div>
+
+
+<p>{{Compat("api.EventSource.onerror")}}</p>
+</div>
+
+<h2 id="関連情報">関連情報</h2>
+
+<ul>
+ <li>{{domxref("EventSource")}}</li>
+</ul>