Using ZODBC Database Adapter to connect to an MSSQL and I can call the sql
method in dtml eg:

<dtml-try>
  <dtml-call "SQL_add_user(REQUEST)">
<dtml-except sql.error>
    Error!
</dtml-try>

But does anyone know a way of trapping the specific error eg: database down,
key violation etc...? Or do I have to hack ZODBC to return different errors?

--
  Andy McKay, Developer.
  ActiveState.


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to