originell/jpype — pull request #29 by baztian (2014-02-02 20:16:49+00:00)
Title: Make jpype.JException catch exceptions from subclasses

Without this patch
try:
javaobj.methodThrowsSubclassOfParentException()
except jpype.JException(ParentException), e:
# Only catches ParentException but no subclasses of ParentException
pass

With my patch
try:
javaobj.methodThrowsSubclassOfParentException()
except jpype.JException(ParentException), e:
# Catches ParentException and all subclasses of ParentException
pass