[DB-SIG] Problem with exception classes

Wichert Akkerman wichert at wiggy.net
Thu Apr 17 20:38:00 EDT 2003


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.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>           http://www.wiggy.net/
A random hacker



More information about the DB-SIG mailing list