jython and java exceptions

Jan Gregor gregor.jan at NOSPAMquick.cz
Wed Aug 4 21:21:57 CEST 2004


Hello

 I found that jython catches exact java exceptions, not their
subclasses. Is there some way to get around this limitation (or error) ?

 My program has class representing database source and specialed classes
for particulars databases. Now there are two options - to include
exception (subclasses of SQLException) for every db in except (so
all drivers has to be present) or to move methods to subclasses.


Jan



More information about the Python-list mailing list