[Python.NET] catching exceptions thrown from .Net

Mathew Yeates mathew at yeates.tv
Tue Jul 5 16:41:26 CEST 2005


yes, it inherits from System.Exception. In fact, I tried throwing a 
NullRefernceException from my dll. Still nothing.

Mathew

Brian Lloyd wrote:

>>Is this  supposed to work in RC5 on Win32 using the supplied python 
>>binary? I have a .Net dll which throws a user defined exception but its 
>>being ignored by my python code.
>>
>>Is this to be expected?
>>
>>Mathew
>>    
>>
>
>Does the user defined exception inherit (eventually) from 
>System.Exception? If so, it should work...
>
>
>Brian Lloyd        brian at zope.com
>V.P. Engineering   540.361.1716              
>Zope Corporation   http://www.zope.com 
>
>
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20050705/daade2d4/attachment.htm


More information about the PythonDotNet mailing list