Re: ironpython exception line number

2007-06-30 Thread Troels Thomsen
>If you're hosting IronPython and catching this from a .NET language >then you'll be catching the .NET exception. Yes >In that case you can access the original Python exception >from ex.Data["PythonExceptionInfo"]. Yes ! YES ! Thx regards tpt -- http://mail.python.org/mailman/listinfo/pytho

RE: ironpython exception line number

2007-06-28 Thread Dino Viehland
onSyntaxErrorException and access its properties (Line, Column, FileName, LineText, Severity, and ErrorCode). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Troels Thomsen Sent: Tuesday, June 26, 2007 1:33 PM To: python-list@python.org Subject: ironpython

ironpython exception line number

2007-06-26 Thread Troels Thomsen
Hello , When an exeption occurs in a IronPython executet script, and I print the sys.exc , i get something ugly like the example below. How can I get the fileName and line number? Thx in advance Troels 26-06-2007 13:19:04 : IronPython.Runtime.Exceptions.PythonIndentationError: unexpected tok