Issue1830916

classification
Title: PyException drops exceptions
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: byronf, cgroves
Priority: normal Keywords:

Created on 2007-11-13.07:58:38 by byronf, last changed 2007-12-02.08:36:59 by cgroves.

Files
File name Uploaded Description Edit Remove
exceptionChain.pat byronf, 2007-11-13.07:58:39 Patch to fix exception chaining
Messages
msg2004 (view) Author: Byron Foster (byronf) Date: 2007-11-13.07:58:38
PyException does not chain an exception when calling java methods from python.  While the stack trace may print the trace of the thrown exception, the original is lost.  Even worse, if the original exception is wrapped within the thrown exception (the cause property), then it is completely lost.  This makes exception handling with jython embedded in a java application difficult.

The provided patch simply sets the cause of the PyException to the Java Exception so that PyException correctly maintains the chain of exceptions.
msg2005 (view) Author: Charlie Groves (cgroves) Date: 2007-12-02.08:36:59
Committed in r3751.  Thanks!
History
Date User Action Args
2007-11-13 07:58:38byronfcreate