Skip to content
Permalink
Browse files

Deprecate InvalidAccessError. (#246)

  • Loading branch information...
tobie committed Dec 8, 2016
1 parent afcc257 commit 671706df92e2cece78d747c1db73fbf863e7ec86
Showing with 92 additions and 73 deletions.
  1. +27 −25 index.bs
  2. +65 −48 index.html
@@ -4512,8 +4512,7 @@ entails in the ECMAScript language binding.
<h4 id="idl-DOMException-error-names">Error names</h4>

The <dfn id="dfn-error-names-table" export>error names table</dfn> below lists all the allowed error names
for {{DOMException|DOMExceptions}}, a description,
and legacy code values.
for {{DOMException|DOMExceptions}}, a description, and legacy code values.

Note: If an error name is not listed here, please file a bug as indicated at the top of this specification and it will be addressed shortly. Thanks!

@@ -4583,42 +4582,31 @@ Note: If an error name is not listed here, please file a bug as indicated at the
<td><dfn id="dom-domexception-namespace_err" for="DOMException" const export><code>NAMESPACE_ERR</code></dfn> (14)</td>
</tr>
<tr>
<td>"<dfn id="invalidaccesserror" exception export><code>InvalidAccessError</code></dfn>"</td>
<td>The object does not support the operation or argument.</td>
<td><dfn id="dom-domexception-invalid_access_err" for="DOMException" const export><code>INVALID_ACCESS_ERR</code></dfn> (15)</td>
</tr>
<tr>

<td>"<dfn id="securityerror" exception export><code>SecurityError</code></dfn>"</td>
<td>The operation is insecure.</td>
<td><dfn id="dom-domexception-security_err" for="DOMException" const export><code>SECURITY_ERR</code></dfn> (18)</td>
</tr>
<tr>

<td>"<dfn id="networkerror" exception export><code>NetworkError</code></dfn>"</td>
<td>A network error occurred.</td>
<td><dfn id="dom-domexception-network_err" for="DOMException" const export><code>NETWORK_ERR</code></dfn> (19)</td>
</tr>
<tr>

<td>"<dfn id="aborterror" exception export><code>AbortError</code></dfn>"</td>
<td>The operation was aborted.</td>
<td><dfn id="dom-domexception-abort_err" for="DOMException" const export><code>ABORT_ERR</code></dfn> (20)</td>
</tr>
<tr>

<td>"<dfn id="urlmismatcherror" exception export><code>URLMismatchError</code></dfn>"</td>
<td>The given URL does not match another URL.</td>
<td><dfn id="dom-domexception-url_mismatch_err" for="DOMException" const export><code>URL_MISMATCH_ERR</code></dfn> (21)</td>
</tr>
<tr>

<td>"<dfn id="quotaexceedederror" exception export><code>QuotaExceededError</code></dfn>"</td>
<td>The quota has been exceeded.</td>
<td><dfn id="dom-domexception-quota_exceeded_err" for="DOMException" const export><code>QUOTA_EXCEEDED_ERR</code></dfn> (22)</td>
</tr>
<tr>

<td>"<dfn id="timeouterror" exception export><code>TimeoutError</code></dfn>"</td>
<td>The operation timed out.</td>
<td><dfn id="dom-domexception-timeout_err" for="DOMException" const export><code>TIMEOUT_ERR</code></dfn> (23)</td>
@@ -4629,75 +4617,89 @@ Note: If an error name is not listed here, please file a bug as indicated at the
<td><dfn id="dom-domexception-invalid_node_type_err" for="DOMException" const export><code>INVALID_NODE_TYPE_ERR</code></dfn> (24)</td>
</tr>
<tr>

<td>"<dfn id="datacloneerror" exception export><code>DataCloneError</code></dfn>"</td>
<td>The object can not be cloned.</td>
<td><dfn id="dom-domexception-data_clone_err" for="DOMException" const export><code>DATA_CLONE_ERR</code></dfn> (25)</td>
</tr>
<tr>

<td>"<dfn id="encodingerror" exception export><code>EncodingError</code></dfn>"</td>
<td>The encoding operation (either encoded or decoding) failed.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="notreadableerror" exception export><code>NotReadableError</code></dfn>"</td>
<td>The I/O read operation failed.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="unknownerror" exception export><code>UnknownError</code></dfn>"</td>
<td>The operation failed for an unknown transient reason (e.g. out of memory).</td>

<td>—</td>
</tr>
<tr>

<td>"<dfn id="constrainterror" exception export><code>ConstraintError</code></dfn>"</td>
<td>A mutation operation in a transaction failed because a constraint was not satisfied.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="dataerror" exception export><code>DataError</code></dfn>"</td>
<td>Provided data is inadequate.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="transactioninactiveerror" exception export><code>TransactionInactiveError</code></dfn>"</td>
<td>A request was placed against a transaction which is currently not active, or which is finished.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="readonlyerror" exception export><code>ReadOnlyError</code></dfn>"</td>
<td>The mutating operation was attempted in a "readonly" transaction.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="versionerror" exception export><code>VersionError</code></dfn>"</td>
<td>An attempt was made to open a database using a lower version than the existing version.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="operationerror" exception export><code>OperationError</code></dfn>"</td>
<td>The operation failed for an operation-specific reason.</td>
<td>—</td>
</tr>
<tr>

<td>"<dfn id="notallowederror" exception export><code>NotAllowedError</code></dfn>"</td>
<td>The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.</td>
<td>—</td>
</tr>
</tbody>
</table>

<div class=advisement>
Additionally, the following {{DOMException|DOMExceptions}} are kept for legacy purposes but their usage is discouraged:

<table id="legacy-error-names" class="vert data">
<thead>
<tr>
<th>DOMException</th>
<th>Alternative</th>
</tr>
</thead>
<tbody>
<tr>
<td>
"<dfn id="invalidaccesserror" exception export><code>InvalidAccessError</code></dfn>"<br>
<dfn id="dom-domexception-invalid_access_err" for="DOMException" const export><code>INVALID_ACCESS_ERR</code></dfn>&nbsp;(15)
</td>
<td>
Use <emu-val>TypeError</emu-val> for invalid arguments,
"{{NotSupportedError!!exception}}" for unsupported operations, and
"{{NotAllowedError!!exception}}" for denied requests.
</td>
</tr>
</tbody>
</table>
</div>


<h3 id="idl-enums">Enumerations</h3>

0 comments on commit 671706d

Please sign in to comment.
You can’t perform that action at this time.