Mozilla 2/Exceptions
Jump to navigation
Jump to search
Owners
Dave Mandelin (dmandelin), with lots of advice from Taras Glek and Jonas Sicking.
Status
There is a technical discussion article under Exceptions.
There are too many outstanding issues to estimate a completion date.
Overview and Motivations
The goal is to replace all nsresult-based error reporting and handling with C++ exceptions.
The main benefit is that error-handing code will become simpler and more concise, making it easier to read and hack on Mozilla code. For example, NS_ENSURE_RESULT lines will disappear. Secondary benefits include:
- Obviating bug 353144, which is that
newis already throwing exceptions, which are not being handled properly.
- Enabling outparamdel.
- Making it possible to propagate the same exception through both native code from C++ and JS runtimes, including Tamarin.
- Possibly improving performance on the common case of no errors.
Risks and Assumptions
Describe any major assumptions or risks of the feature here.
Schedule and Milestones
Describe the rough schedule here.
References
links to external documents that could inform the design of the feature