[Mono-dev] better exceptions for Mono.Data provider sniffer.

Brad Langhorst brad at langhorst.com
Sat Mar 15 13:50:50 EDT 2008


On Sat, 2008-03-15 at 12:53 -0400, Miguel de Icaza wrote:
> Hello Brad,
> 
>     In your patch, wouldn't it be easier to catch the return value from:
> 
>                         Provider provider = providers [ProviderName];
> 
>     And if null, report that the provider was not found, instead of
> adding an extra loop?

Yes - that's superior.  I'm not sure why I didn't do that in the first
place. I've tested the by-name index with bogus input and it does return
null in all relevant cases.

here's an updated patch.


brad

-------------- next part --------------
A non-text attachment was scrubbed...
Name: more_detailed_provider_errors.diff
Type: text/x-patch
Size: 1811 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080315/8a07adce/attachment.bin 


More information about the Mono-devel-list mailing list