From: Robertson, J. V <jas...@in...> - 2001-12-18 18:19:42
|
Hi, I've been using Jython for a little while for some Jini/client-server stuff, and I really like it so far except for little things that come up I don't understand. I've got a few basic (probably dumb) questions. I would _love_ to have been able to search the jython-users archive but I can't seem to find a search option for the archive (which is insane - surely I'm just not seeing it?) Anyway, I can't get this to work from Jython-2.1b1: sys.tracebacklimit = 0 It still prints a full stack trace for uncaught exceptions. Second, does Jython not capture an exception and all subclasses of that exception? Why does this work: try: something() except java.lang.ClassCastException, x: print x And this doesn't (ClassCastException _is_ a type of Exception) try: something() except java.lang.Exception, x: print x Thanks, Jason |