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

[Bug 10623] Simplify Web IDL exceptions

From: <bugzilla@jessica.w3.org>
Date: Thu, 18 Aug 2011 13:58:47 +0000
To: public-script-coord@w3.org
Message-Id: <E1Qu37P-0006wP-Bg@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10623

--- Comment #13 from Anne <annevk@opera.com> 2011-08-18 13:58:45 UTC ---
The platform already shares exceptions all over so maybe we should converge on
that by having everything on exceptions in Web IDL. The only thing other
specifications would do is say "throw a SYNTAX_ERR exception" or some such.

Just like Web IDL now defines DOMString and DOMTimeStamp, Web IDL would define
DOMException and be responsible for maintaining it (potentially having some way
for specifications to add to it, but I think if we revise Web IDL every now and
then we should be fine). Other specifications just need to dispatch the
appropriate exception defined by Web IDL. For most of the DOM platform we have
already found ways to converge on DOMException. I do not think it should be
problematic if we continue this trend through the whole platform.

-- 
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, 18 August 2011 13:58:48 UTC

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