[IronPython] Ironpython exception

Dino Viehland dinov at exchange.microsoft.com
Thu Jun 12 20:01:41 PDT 2008


Basically you want to call FormatException and get back the formatted exception string.  That'll get you the same formatted exception we give at the console.

In 1.x this is PythonEngine.FormatException.  In 2.x it's ScriptEngine.FormatException.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa Gain
Sent: Thursday, June 12, 2008 1:17 PM
To: users at lists.ironpython.com
Subject: [IronPython] Ironpython exception


I am embedding Ironpython code into C# code and my C# code is using a COM
component which i am using into Python code. Please suggest me what would be
the best approach to handle exceptions. Showing  Line # and column # in
exception message for the embedded python code is a must.
--
View this message in context: http://www.nabble.com/Ironpython-exception-tp17808285p17808285.html
Sent from the IronPython mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Users mailing list