From: Barry H. <b.h...@sc...> - 2001-02-28 14:39:38
|
Hi I'd like to do something like the following in jython import traceback try: #... except: traceback.print_exc() But the module traceback doesn't seem to be included in jython. Instead I use something like import sys try: #... except Exception, detail: print sys.exc_info()[0] , detail print(sys.exc_info()[2]).dumpStack() But is there a better way? ie, is there an equivalent to traceback in jython ? cheers Barry |