[Zope] PostgreSQL Databases

Thomas Mathes Thomas Mathes" <thomas.mathes@tmnd.de
Wed, 16 Jul 2003 10:10:28 +0200


I use ZPoPyDA. What are the classes ?

> 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