[Bug 10623] Simplify Web IDL exceptions

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

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2011-04-12 03:02:29 UTC ---
Exceptions have been changed so that you can now inherit one from another, with
a view to not requiring codes for newly defined exceptions, per
<http://www.w3.org/mid/20101217180920.GA31176@wok.mcc.id.au>.  In the simple
case for new exceptions where you don't need an inheritance hierarchy for them,
you would just write:

  interface MyNewException { };

which will be sufficient for testing against with either `e instanceof
MyNewException` or `e.name == "MyNewException"`.

-- 
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 Tuesday, 12 April 2011 03:02:32 UTC