.. autoexception:: NotSupportedError()
+Other Psycopg errors
+^^^^^^^^^^^^^^^^^^^^
+
.. currentmodule:: psycopg.errors
+
+In addition to the standard DB-API errors, Psycopg defines a few more specific
+ones.
+
+.. autoexception:: ConnectionTimeout()
+
+
+
.. index::
single: Exceptions; PostgreSQL
-
Error diagnostics
-----------------
class NotSupportedError(DatabaseError):
"""
- A method or database API was used which is not supported by the database,
+ A method or database API was used which is not supported by the database.
"""
__module__ = "psycopg"
class ConnectionTimeout(OperationalError):
"""
- Exception raised on timeout connection.
+ Exception raised on timeout of the `~psycopg.Connection.connect()` method.
+
+ The error is raised if the ``connect_timeout`` is specified and a
+ connection is not obtained in useful time.
+
+ Subclass of `~psycopg.OperationalError`.
"""