From: Frank C. <fc...@pu...> - 2001-09-29 15:39:32
|
In the words of Rodney: Can't we all just live together? Other analogies comes to mind: Let the farmer and the cowboy be friends. I'll keep in mind that I can get the PyTraceback in Jython. But for this application I'd like to do so in Java. Oh well, I'll keep digging. -Frank -- Frank Cohen, founder, PushToTest, www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. > From: Ype Kingma <yk...@xs...> > Date: Sat, 29 Sep 2001 11:16:29 +0100 > To: jyt...@li... > Subject: Re: [Jython-users] Catching and showing errors > >> I'm writing a little utility that will run a Jython script and when it >> catches an error it will open an editor and jump to the line number that >> contains the offending script. I'm starting with a Java application and am >> correctly catching a forced example exception. Jython gives the exception a >> PyException object. From PyException how may I get a PyTraceback object, so >> I may get the line number from tb_lineno? |