trap exceptions comprehensively in Jython
问题 This is my attempt so far to trap all exceptions in Jython code. The most difficult thing, I find, is trapping exceptions when you override a method from a Java class: with the "vigil" decorator below (which also tests whether the EDT/Event Despatch Thread status is correct) you can find out the first line where the code is thrown... so you can identify the method itself. But not the line. Furthermore, tracing stack frames back through Python and Java stacks is completely beyond me. Obviously