Jiri Cincura wrote:
> 
> On 11/2/07, paha <[EMAIL PROTECTED]> wrote:
>> Correct, but i would like to get from provider original localized
>> messages
>> for standard exceptions like concurrency to identify the exception
>> itself,
>> not to show it direct to user ;-) . It is not perfect, and must be
>> avoided
>> in any way, but if it happened, how can i know what exceptions should be
>> thrown (or actions taken) if i get rows with different RowErrors and no
>> real
>> exception thrown - i can only compare RowErrors with standard Exception
>> messages :) and here i fail, because message for DBConcurrencyException
>> thrown from provider is not standard and doesn't coincide with default
>> message for this case.
> 
> Hmm, but in row.RowError can be almost any message from any exception.
> So we will have dictionary for a lot of texts. And this is IMO no good
> way. I know, that with ContinueUpdateOnError the handling is harder,
> but solving this in provider doesn't look like good design to me.
> 
Yes, but at least for exceptions derived from DataException, you could throw
standard messages, there is no necessity anyway to use your "own" message
instead of predefined, is there? I mean, that at least
DBConcurrencyException i could identify then and handle gracefully, and all
other throw to user/calling code . Anyway it is not so important, i created
a ticket for this issue with minor priority. At least I can change the
behavior in my local copy of provider, and than merge it every time with
your commits :)

Besides, i created tickets in bugtracker, the only thing i couldn't do, is
to choose you as assignee, so Carlos got headache :) -  there were no option
at all regarding assignee



-- 
View this message in context: 
http://www.nabble.com/DBConcurrencyException-tf4731950.html#a13544538
Sent from the firebird-net-provider mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to