You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run attached example (a simple Gradle-based project with only one Java file)
See the following output:
1. Throwing directly
Exception of type org.python.core.PyException (__builtin__.test$MyException: test$MyException: foo)
Caused by exception of type test$MyException (__builtin__.test$MyException: test$MyException: foo)
2. Throwing inside a context manager block
Exception of type org.python.core.PyException (__builtin__.test$MyException: test$MyException: foo)
I would expect that exception in the second case is exactly the same, with the same cause. Yes, message and printed stacktrace looks fine, but from programming point of view it incorrectly lacks a cause (as in Throwable.getCause()). jython.tar.gz
The text was updated successfully, but these errors were encountered:
To reproduce:
Run attached example (a simple Gradle-based project with only one Java file)
See the following output:
I would expect that exception in the second case is exactly the same, with the same cause. Yes, message and printed stacktrace looks fine, but from programming point of view it incorrectly lacks a cause (as in
Throwable.getCause()
).jython.tar.gz
The text was updated successfully, but these errors were encountered: