Skip to content
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

Change the recommended language for DOMExceptions #247

Closed
domenic opened this issue Dec 8, 2016 · 0 comments
Closed

Change the recommended language for DOMExceptions #247

domenic opened this issue Dec 8, 2016 · 0 comments

Comments

@domenic
Copy link
Member

domenic commented Dec 8, 2016

See: whatwg/html#1176 (also w3c/IndexedDB#124).

Suggested changes to https://heycam.github.io/webidl/#idl-exceptions :

  • Remove quotation marks around the simple exceptions and maybe use emu-val for them too
  • Maybe remove Error from that list, and note that it's reserved for developer-created errors (similar to how SyntaxError is reserved for JS parser errors)
  • Change "Exceptions can be created by providing its error name." to something spelling out that for simple exceptions you provide the name and for DOMExceptions you say DOMException + the name in quotes.
  • Change all the examples; also add more cross-links to them and fix their typography
tobie added a commit to tobie/webidl that referenced this issue Dec 8, 2016
* Don't define simple exception names in WebIDL.
* Make Error exclusively for authors.
* Fix syntax for throwing and creating DomExceptions.
* Fix examples.

Closes whatwg#247.
@tobie tobie mentioned this issue Dec 8, 2016
tobie added a commit to tobie/webidl that referenced this issue Dec 9, 2016
* Don't define simple exception names in WebIDL.
* Make Error exclusively for authors.
* Fix syntax for throwing and creating DomExceptions.
* Fix examples.

Closes whatwg#247.
tobie added a commit that referenced this issue Dec 13, 2016
* Make Error exclusively for authors.
* Fix syntax for throwing and creating DOMExceptions.
* Fix examples.
* Fix references to simple exceptions in legacy DOMExceptions.
* Stop exporting ES throw.

Closes #247.
tobie added a commit to tobie/webidl that referenced this issue Dec 13, 2016
tobie added a commit that referenced this issue Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant