You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Edge <mi...@db.com> on 2002/11/20 10:53:49 UTC

Two ESQL Questions

I have a couple of ESQL questions:

1) If an ESQL query throws a database exception, is there any way to log the stack trace to a file?
2) If an ESQL query throws a database exception, is there any way to handle this using the <map:handle-errors> section of the sitemap, so that all exceptions thrown, whether during pipeline processing or application exceptions, are displayed in the same manner?

Regards

Michael



--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



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

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


Re: Two ESQL Questions

Posted by Christian Haul <ha...@informatik.tu-darmstadt.de>.
Michael Edge wrote:
> I have a couple of ESQL questions:
> 
> 1) If an ESQL query throws a database exception, is there any way to log the stack trace to a file?

Database exceptions are either rethrown as processing exceptions or 
handled by the code in esql:error-results

This applies only for those errors that stem from the execute() method 
call i.e. setup-errors are different.

> 2) If an ESQL query throws a database exception, is there any way to handle this using the <map:handle-errors> section of the sitemap, so that all exceptions thrown, whether during pipeline processing or application exceptions, are displayed in the same manner?

see above.

	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/faq/index.html>

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