From: Yang W. <yw...@pr...> - 2002-01-30 22:05:57
|
Hi All, Are there a way to distinguish Jython syntax exceptions from Java Exceptions? For instance: >>> try : ... from com.private.package import NonexistClass ... except PythonException, ex: ... print "Pyton:" ... except Exception, ex2: ... print "ex:" ... else: ... print "else:" ... Traceback (innermost last): File "<console>", line 2, in ? NameError: PythonException Thanks in advance. Yang |