aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/fileerror
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/zh-cn/web/api/fileerror
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/fileerror')
-rw-r--r--files/zh-cn/web/api/fileerror/index.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/fileerror/index.html b/files/zh-cn/web/api/fileerror/index.html
new file mode 100644
index 0000000000..d476b4da4c
--- /dev/null
+++ b/files/zh-cn/web/api/fileerror/index.html
@@ -0,0 +1,77 @@
+---
+title: FileError
+slug: Web/API/FileError
+translation_of: Web/API/FileError
+---
+<p>{{APIRef("File System API")}}{{obsolete_header()}}</p>
+
+<h2 id="概述">概述</h2>
+
+<p>用来表示在使用{{ domxref("FileReader") }}接口时发生的错误.</p>
+
+<h2 id="Attributes" name="Attributes">属性</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <td class="header">属性名</td>
+ <td class="header">类型</td>
+ <td class="header">描述</td>
+ </tr>
+ <tr>
+ <td><code>code</code></td>
+ <td><code>unsigned short</code></td>
+ <td>The <a href="/zh-cn/nsIDOMFileError#Error_codes" title="zh-cn/nsIDOMFileError#Error codes">error code</a>.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Error_codes">Error codes</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <td class="header">常量</td>
+ <td class="header">值</td>
+ <td class="header">描述</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>ABORT_ERR</code></td>
+ <td>3</td>
+ <td>文件的操作命令被取消,可能是由于调用了<code>FileReader</code>的<code>abort()方法</code>.</td>
+ </tr>
+ <tr>
+ <td><code>ENCODING_ERR</code></td>
+ <td>5</td>
+ <td>文件数据不能准确的被表示为一个data URI.</td>
+ </tr>
+ <tr>
+ <td><code>NOT_FOUND_ERR</code></td>
+ <td>1</td>
+ <td>找不到文件.</td>
+ </tr>
+ <tr>
+ <td><code>NOT_READABLE_ERR</code></td>
+ <td>4</td>
+ <td>文件无法被读取.</td>
+ </tr>
+ <tr>
+ <td><code>SECURITY_ERR</code></td>
+ <td>2</td>
+ <td>由于安全原因,文件不能被访问.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="相关链接">相关链接</h2>
+
+<ul>
+ <li>{{ domxref("FileReader") }}</li>
+ <li>{{ domxref("File") }}</li>
+ <li>{{ domxref("Blob") }}</li>
+ <li>{{ spec("http://www.w3.org/TR/FileAPI/#FileErrorInterface", "Specification: FileAPI FileError", "WD") }}</li>
+</ul>
+
+<p>{{ languages( {"en": "en/DOM/FileError" } ) }}</p>