Closed
Bug 374852
Opened 17 years ago
Closed 9 years ago
better exceptions in pyxpcom
Categories
(Other Applications Graveyard :: PyXPCOM, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: shanec, Unassigned)
References
Details
Attachments
(3 files)
8.98 KB,
patch
|
Details | Diff | Splinter Review | |
15.64 KB,
patch
|
Details | Diff | Splinter Review | |
1.31 KB,
application/octet-stream
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Build Identifier: pyxpcom exceptions do not pass xpcom boundaries, and there is no way to get the message from COMException in JavaScript. This patch makes COMException a nsIException, and uses nsIStackFrame to provide deeper details in the exception. This allows the exception to be handled in JavaScript. It also catches exceptions (eg. javascript component called from pyxpcom component) and patches them up a bit by adding the pyxpcom layer to the "inner" member. That way, if the exception is ultimately caught in javascript, you can still see where in python the exception occurred. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Reporter | ||
Comment 1•17 years ago
|
||
Reporter | ||
Updated•17 years ago
|
Attachment #259265 -
Flags: review?(mhammond)
Reporter | ||
Comment 2•17 years ago
|
||
this patch is not for general use, it has some debug statements I have added to help figure out an issue I am reviewing with MarkH
Reporter | ||
Comment 3•17 years ago
|
||
cleaned up patch. PyErr_Clear is not necessary to call if we return NULL to python. Returning NULL allows the exception object created in python to get passed through properly.
Updated•15 years ago
|
Component: XPCOM → PyXPCOM
Product: Core → Other Applications
QA Contact: xpcom → pyxpcom
Version: Trunk → unspecified
Comment 4•12 years ago
|
||
Comment on attachment 259265 [details] [diff] [review] pyxpcom_xpcom_exceptions.patch Almost certainly out of date - sorry about that
Attachment #259265 -
Flags: review?(mhammond)
Comment 5•9 years ago
|
||
Expired.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•