Skip to content

Commit

Permalink
Specify NotReadableError for read failures arising from the underlyin…
Browse files Browse the repository at this point in the history
…g storage
  • Loading branch information
abhishek-shanthkumar committed Oct 4, 2024
1 parent 010ecb2 commit 0c09c71
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,13 @@ usage.
not be found.
</td>
</tr>
<tr>
<td>{{NotReadableError}}</td>
<td>
The operation failed because the file(s) containing the requested
data could not be read.
</td>
</tr>
<tr>
<td>{{QuotaExceededError}}</td>
<td>
Expand All @@ -1892,8 +1899,8 @@ usage.
<tr>
<td>{{UnknownError}}</td>
<td>
The operation failed for reasons unrelated to the database
itself and not covered by any other errors.
The operation failed for transient reasons unrelated to the
database itself and not covered by any other error.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -5642,7 +5649,8 @@ To <dfn>retrieve a value from an object store</dfn> with

1. If |record| was not found, return undefined.

1. Let |serialized| be of |record|'s [=/value=].
1. Let |serialized| be |record|'s [=/value=]. If an error occurs while reading the value from the
underlying storage, return a newly [=exception/created=] "{{NotReadableError}}" {{DOMException}}.

1. Return [=ECMAScript/!=] [$StructuredDeserialize$](|serialized|, |targetRealm|).

Expand All @@ -5664,7 +5672,8 @@ store</dfn> with |targetRealm|, |store|, |range| and optional |count|, run these

1. [=list/For each=] |record| of |records|:

1. Let |serialized| be |record|'s [=/value=].
1. Let |serialized| be |record|'s [=/value=]. If an error occurs while reading the value from the
underlying storage, return a newly [=exception/created=] "{{NotReadableError}}" {{DOMException}}.
1. Let |entry| be [=ECMAScript/!=] [$StructuredDeserialize$](|serialized|, |targetRealm|).
1. Append |entry| to |list|.

Expand Down

0 comments on commit 0c09c71

Please sign in to comment.