blob: 00167fc6777390cdf2a59fc72114441a50dc7a91 (
plain)
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
|
---
title: FileReader.error
slug: Web/API/FileReader/error
tags:
- API
- File API
- Reference
- ファイル
- プロパティ
translation_of: Web/API/FileReader/error
---
<div>{{APIRef("File API")}}</div>
<p>{{domxref("FileReader")}} の <code><strong>error</strong></code> プロパティは、ファイルの読み取り中に発生したエラーを返します。</p>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox notranslate">var <var>error</var> = <var>instanceOfFileReader</var>.error
</pre>
<h2 id="Value" name="Value">値</h2>
<p>{{domxref("DOMError")}} に関連するエラーが含まれています。 Chrome 48+/Firefox 58+ では、 <code>DOMError</code> が DOM 標準から削除されているため、このプロパティは {{domxref("DOMException")}} を返します。</p>
<h2 id="仕様">仕様</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("File API", "#FileReader-interface", "FileReader")}}</td>
<td>{{Spec2("File API")}}</td>
<td>初回定義</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザの互換性</h2>
<p>{{Compat("api.FileReader.error")}}</p>
<h2 id="See_also" name="See_also">あわせて参照</h2>
<ul>
<li>{{domxref("FileReader")}}</li>
</ul>
|