[IronPython] Can you get a python traceback object off a clr exception?

Dan Eloff dan.eloff at gmail.com
Fri Aug 29 02:41:24 CEST 2008


Can you get a python traceback object off a clr exception?

I've got to think internally there must be a way, because
ScriptEngine.FormatException expects a clr exception. Is there a
public interface to do that? It would be nice if there could be, in
python you can do everything with sys.exc_info() because typically all
the cases you want a traceback object, you're in an except clause or
being called out of one. In .NET however, sometimes you get passed an
exception in an event handler, and then sys.exc_info() is useless.

-Dan



More information about the Ironpython-users mailing list