Re: [whatwg/webidl] Allow DOMException subclasses to be used as exceptions (PR #1211)

> It's not clear to me whether a spec would be allowed to create a DOMException with a new error name (ie, not from that table) directly, without defining an interface that inherits from DOMException.

The intention is you are not supposed to do that. And you are not supposed to define subclasses, just because you want a new name. Instead you are supposed to come coordinate on the Web IDL repo to determine if any existing names will suit your purpose, and if not, send a PR to add it to the table.

I agree making this explicit is a good idea, and I'll do so.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1211#issuecomment-1273273600
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1211/c1273273600@github.com>

Received on Monday, 10 October 2022 12:55:30 UTC