[Bug 10623] Simplify Web IDL exceptions

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