[Zope] Re: Oracle Error Messages

Chris McDonough chrism@digicool.com
Thu, 28 Jun 2001 12:40:46 -0400


Ricardo,

Yes, I think you can only catch all exceptions or a string exception with
dtml-try... I would suggest catching them all with <dtml-try><dtml-except>
(although I know you claim it doesn't work).  I can't help you much here if
you're having problems any further than what's in the docs, I only use DTML
in the simplest presentation code, never anything that requires a
<dtml-try>.

If you can't get <dtml-try> to work I might suggest using an external method
instead of a DTML method, importing the error class into it from DCOracle
and catching that in the place where the error occurs.

- C

PS - I am cc'ing the Zope list on this message.. if possible, please send
further questions to the list... thanks.

----- Original Message -----
From: Ricardo Seghizzi
To: Chris McDonough
Sent: Thursday, June 28, 2001 12:21 PM
Subject: Oracle Error Messages


Hi Chris,

I created a website that connect to an Oracle 8.0 DB.

My web application is working fine. I created a web application that access
a external DB in only 2 weeks!
And during this period I as learning Zope and DTML as well. Not to bad...

Zope is wonderfull...

When my application runs and access the Database if an error occurs the
oracle error will be displayed on the page.
I wold like to know how could I catch the error and handle the error message
to give something more
understandable for my end users?
I try to use <dtml-try> and <dtml-exepcion> but I didn't manage to make it
work.

Do you kown how this cold be done?

Regards'

Ricardo