[DB-SIG] Problem with exception classes
Kevin Jacobs
jacobs at penguin.theopalgroup.com
Thu Apr 17 17:26:58 EDT 2003
On Thu, 17 Apr 2003, Wichert Akkerman wrote:
> Previously Kevin Jacobs wrote:
> > I use a trick to virtualize the database exceptions so that I can catch them
> > without knowing which backend they come from.
>
> Nice trick; you basically use a common module which all SQL using
> modules can import which defines the exception classes. I'm not
> sure if that is workable for a DB-API though, since nothing exists
> to provide that common module which defines the exception
> types.
True, but it works just fine for my own database abstraction layer and does
not require altering the DB-API specification.
-Kevin
--
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19 E-mail: jacobs at theopalgroup.com
Fax: (216) 986-0714 WWW: http://www.theopalgroup.com
More information about the DB-SIG
mailing list