Skip to content

Update QuotaExceededError references #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ If the `outputLanguage` is not supplied, the default behavior is to produce the

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.

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:
Whenever any API call fails due to too-large input, it is rejected with a `QuotaExceededError`, with the following properties:

* `requested`: how many tokens the input consists of
* `quota`: how many tokens were available (which will be less than `requested`)
Expand Down
8 changes: 0 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ urlPrefix: https://tc39.es/ecma262/; spec: ECMA-262
text: floor; url: eqn-floor
type: dfn
text: current realm; url: current-realm
urlPrefix: https://whatpr.org/webidl/1465.html; spec: WEBIDL
type: interface
text: QuotaExceededError; url: quotaexceedederror
type: dfn; for: QuotaExceededError
text: requested; url: quotaexceedederror-requested
text: quota; url: quotaexceedederror-quota
</pre>

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

<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.

<div algorithm>
To <dfn export>convert error information into an exception object</dfn>, given an [=error information=] |errorInfo|:

Expand Down
Loading