I'm embedding IronPython 2.0 in c#. In IronPython I defined my own exception with:
def foobarException(Exception):
pass
and raise it somewhere with: raise foobarException( "This is the Exception Message" )
now in c# I have:
try
{
callIronPython();
}
catch (Exception e)
{
// How can I determine here the name (foobarException) of the Exception that is
// thrown from IronPython??
// With e.Message I get: "This is the Exception Message"
}