[Zope] PostgreSQL Databases
Dieter Maurer
dieter@handshake.de
Tue, 15 Jul 2003 23:41:08 +0200
Thomas Mathes wrote at 2003-7-15 17:57 +0200:
> I want to insert data into a PostgreSQL Database
> over an external Method. My problem is that I don't
> know how to implement a reasonable exception Handling.
> I don't know which classes I should use.
> I did the same thing with ODBC, but there was
> a special class which has to be used for this error
> Handling(sql).
There are no standard exception classes for this.
Each DA uses its own exceptions.
For the "ZPsycopgDA", it is for example:
psycopg.Error (base class)
pyscopg.OperationalError
psycopg.InterfaceError
psycopg.IntegrityError
Dieter