W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

[Bug 10623] Simplify Web IDL exceptions

From: <bugzilla@jessica.w3.org>
Date: Tue, 12 Apr 2011 03:02:30 +0000
To: public-webapps@w3.org
Message-Id: <E1Q9Ts6-00070j-Er@jessica.w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:44 GMT