[Bug 10623] Simplify Web IDL exceptions

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10623

--- Comment #16 from Cameron McCormack <cam@mcc.id.au> 2011-10-13 04:09:07 UTC ---
(In reply to comment #15)
> I defined something like what you suggested now.
> 
> http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-throw
> 
> This should basically allow everyone to mint new DOMException values. When they
> happen to be one of the types that has a legacy code exception field value code
> will be set appropriately.

Great!

> Should we have a central registry somewhere (maybe in form of a wiki) where
> specifications can note additional exception types and descriptions? (They do
> not need the legacy code field value.)

Yes, I think that is a good idea.  Repurpose
http://wiki.whatwg.org/wiki/Exception_Codes?

One final thing to wonder is whether new exception types (ones that don't have
a legacy code) should use use Error rather than DOMException.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Thursday, 13 October 2011 04:09:31 UTC