This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12464 - exception type should support inheritance
Summary: exception type should support inheritance
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 15:07 UTC by Jari Bakken
Modified: 2011-04-12 02:52 UTC (History)
2 users (show)

See Also:


Attachments

Description Jari Bakken 2011-04-09 15:07:25 UTC
It's sometimes useful to define a hierarchy of exceptions, e.g.

    exception NotFoundException { };
    exception NoSuchElementException : NotFoundException { };
    exception NoSuchFrameException : NotFoundException { };

If not, then the section on Exceptions (3.4.) should include this as another way exceptions differ from interfaces.
Comment 1 Cameron McCormack 2011-04-10 02:47:37 UTC
Yes, we discussed something like this recently on the mailing list:

  http://lists.w3.org/Archives/Public/public-script-coord/2010OctDec/0112.html

I plan to add this to the spec soon.