Skip to content

Commit b590fa2

Browse files
committed
Update QuotaExceededError usage
QuotaExceededError is graduating from being a DOMException name into a new error class, in whatwg/webidl#1465. Update creation sites to reflect this. For now, the quota and requested properties are left at their default (null). Future work could include setting them in an informative fashion.
1 parent 89bd5f0 commit b590fa2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ This method creates a {{HandwritingRecognizer}} object that satisfies the provid
328328
1. Run the following steps [=in parallel=]:
329329
1. <a lt="convert">Convert |constraint| into a suitable form</a> for creating a platform-dependent [=handwriting recognizer=].
330330
1. [=Queue a Handwriting Recognition API task=] to:
331-
1. If the user agent can't create or prepare a [=handwriting recognizer=] to perform recognitions, [=/reject=] |p| with a new {{DOMException}} according to the failure cause:
332-
* If |constraint|'s {{HandwritingModelConstraint/languages}} is an empty [=list=], {{"NotSupportedError"}}.
333-
* If the user agent can't find a platform-dependent [=handwriting recognizer=] that satisfies the converted |constraint|, {{"NotSupportedError"}}.
334-
* If creating a [=handwriting recognizer=] would cause the user agent to exceed its limit for total number of active recognizer, {{"QuotaExceededError"}}.
335-
* If the web application can retry calling this method, {{OperationError}}.
336-
* For all other failure causes, {{"UnknownError"}}
331+
1. If the user agent can't create or prepare a [=handwriting recognizer=] to perform recognitions, [=/reject=] |p| with a new exception according to the failure cause:
332+
* If |constraint|'s {{HandwritingModelConstraint/languages}} is an empty [=list=], {{"NotSupportedError"}} {{DOMException}}.
333+
* If the user agent can't find a platform-dependent [=handwriting recognizer=] that satisfies the converted |constraint|, {{"NotSupportedError"}} {{DOMException}}.
334+
* If creating a [=handwriting recognizer=] would cause the user agent to exceed its limit for total number of active recognizer, {{QuotaExceededError}}.
335+
* If the web application can retry calling this method, {{"OperationError"}} {{DOMException}}.
336+
* For all other failure causes, {{"UnknownError"}} {{DOMException}}.
337337
1. Otherwise:
338338
1. Let |result| be a new {{HandwritingRecognizer}} object.
339339
1. Associate |result| with the platform-dependent [=handwriting recognizer=] created in the previous step.
@@ -658,7 +658,7 @@ If the handwriting recognizer wasn't able to recognize anything, {{HandwritingDr
658658
<div algorithm="handwriting-drawing-get-prediction">
659659
When {{HandwritingDrawing/getPrediction()}} is invoked:
660660

661-
1. If `this`.[=HandwritingDrawing/recognizer=].[=HandwritingRecognizer/active=] isn't true, return a [=a promise rejected with=] {{"InvalidStateError"}} {{DOMException}}.
661+
1. If `this`.[=HandwritingDrawing/recognizer=].[=HandwritingRecognizer/active=] isn't true, return a [=a promise rejected with=] {{"InvalidStateError"}} {{DOMException}}.
662662
1. If `this`.[=HandwritingDrawing/strokes=] is empty, return a [=a promise resolved with=] a new empty [=list=].
663663
1. <a lt="convert">Convert `this` drawing into a format suitable</a> for [=handwriting recognizer=].
664664
1. Let |p| be a new Promise, run the following step [=in parallel=]

0 commit comments

Comments
 (0)