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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Huzaifa Gain Sent: Thursday, June 12, 2008 1:17 PM To: [email protected] 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 [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
