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>

--- 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.4.0 : Friday, 17 January 2020 17:14:04 UTC