Skip to content

Commit ef8f5d9

Browse files
committed
Update QuotaExceededError references
Once whatwg/webidl#1465 is merged, we can reference Web IDL directly, instead of the pull request preview.
1 parent 5ce8832 commit ef8f5d9

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ If the `outputLanguage` is not supplied, the default behavior is to produce the
179179

180180
It's possible that the inputs given for summarizing and rewriting might be too large for the underlying machine learning model to handle. The same can even be the case for strings that are usually smaller, such as the writing task for the writer API, or the context given to all APIs.
181181

182-
Whenever any API call fails due to too-large input, it is rejected with a `QuotaExceededError`. This is a proposed new type of exception, which subclasses `DOMException`, and replaces the web platform's existing `"QuotaExceededError"` `DOMException`. See [whatwg/webidl#1465](https://github.com/whatwg/webidl/pull/1465) for this proposal. For our purposes, the important part is that it has the following properties:
182+
Whenever any API call fails due to too-large input, it is rejected with a `QuotaExceededError`, with the following properties:
183183

184184
* `requested`: how many tokens the input consists of
185185
* `quota`: how many tokens were available (which will be less than `requested`)

index.bs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ urlPrefix: https://tc39.es/ecma262/; spec: ECMA-262
3131
text: floor; url: eqn-floor
3232
type: dfn
3333
text: current realm; url: current-realm
34-
urlPrefix: https://whatpr.org/webidl/1465.html; spec: WEBIDL
35-
type: interface
36-
text: QuotaExceededError; url: quotaexceedederror
37-
type: dfn; for: QuotaExceededError
38-
text: requested; url: quotaexceedederror-requested
39-
text: quota; url: quotaexceedederror-quota
4034
</pre>
4135

4236
<style>
@@ -2403,8 +2397,6 @@ A <dfn export>quota exceeded error information</dfn> is a [=struct=] with the fo
24032397
: <dfn export for="quota exceeded error information">quota</dfn>
24042398
:: a number that will be used for the {{QuotaExceededError}}'s [=QuotaExceededError/quota=].
24052399

2406-
<p class="advisement">The parts of this specification related to quota exceeded errors assume that <a href="https://github.com/whatwg/webidl/pull/1465">whatwg/webidl#1465</a> will be merged.
2407-
24082400
<div algorithm>
24092401
To <dfn export>convert error information into an exception object</dfn>, given an [=error information=] |errorInfo|:
24102402

0 commit comments

Comments
 (0)