Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Improve error handling in DBREsourceDataManager.GetResourceSet

$
0
0
Re: Improve error handling in DBREsourceDataManager.GetResourceSet
West Wind Web Toolkit for ASP.NET
Re: Improve error handling in DBREsourceDataManager.GetResourceSet
Jun. 4, 2013
03:25 am
3SU07CF0SShow this entire thread in new window
Gratar Image based on email address
From:Michael Freidgeim
To:Rick Strahl
Hi Rick,
Sorry for the late response. I've missed your reply.
>>Unless you set the value to one or more spaces this will work - if you do that then the suggestion I have is: Don't do that :-) Why would you have spaces in that field?

I am fully agree, that it should not be done, but it's exactly what one of our support girls did in production database, and it took a while for developers to find the reason, because visually records in test and production databases were the same.

>>The problem with the error reporting is that GetResources() always returns a result - it will return an empty resourceset on failure.

Actually if your have 15 rows, and the error occur on 10th row, resourceset returned the first 9. The current implementation returns partial data, not an empty resourceset on failure. My suggestion was to skip only failed row and return also remaining 5 rows. The impact will be minimal, because only 1 row, not 6 will be missing. Arguably, it would be easier to debug.


Viewing all articles
Browse latest Browse all 10393

Trending Articles