cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: esql and db-actions error handling
Date Fri, 12 Apr 2002 09:06:47 GMT
On 12.Apr.2002 -- 10:12 AM, Jerzy Kut wrote:
> If I understand Your explanation it is correct construct that should provide
> handling db errors. So how to handle this?

You're right. Sometimes I forget all the differences between the
original database actions and those in scratchpad....

With the ones in scratchpad you could specify if they should throw an
exception or continue. The original actions don't offer this. Would be
easy to do it, though. Might have a go at it next week.

> During working of website it is possible to occur damages with DBServer. How
> to handle this errors? Often it will be connection errors. Or errors
> resulting from transaction fails or constraints violations.

I think connection errors would need to be resolved at sitemap level
with a new error handler but I may be completely wrong. The rest
should be possible with the above.

> Maybe good way to resolve it will be write own Database*Actions provides to
> handle this errors? What do You think? (But of course I welcome simplest
> method resolving this trouble..)

I would strongly suggest to use the database actions from
scratchpad. Or modify the original ones and send a patch :-)

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message