IronPython 2.0をC#に埋め込んでいます。IronPythonでは、次のように独自の例外を定義しました。
def foobarException(Exception):
pass
そしてそれをどこかで上げます:
raise foobarException( "This is the Exception Message" )
今C#で、私は持っています:
try
{
callIronPython();
}
catch (Exception e)
{
// How can I determine the name (foobarException) of the Exception
// that is thrown from IronPython?
// With e.Message, I get "This is the Exception Message"
}