Hello, 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).
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
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
participants (2)
-
Dieter Maurer -
Thomas Mathes