W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2011

[Bug 10623] Simplify Web IDL exceptions

From: <bugzilla@jessica.w3.org>
Date: Thu, 13 Oct 2011 04:09:10 +0000
To: public-script-coord@w3.org
Message-Id: <E1RECbW-0008Dv-SV@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC