bpo-34061: Document sqlite3.NotSupportedError (GH-8172) · python/cpython@4041565

Original file line numberDiff line numberDiff line change

@@ -771,6 +771,13 @@ Exceptions

771771

disconnect occurs, the data source name is not found, a transaction could

772772

not be processed, etc. It is a subclass of :exc:`DatabaseError`.

773773
774+

.. exception:: NotSupportedError

775+
776+

Exception raised in case a method or database API was used which is not

777+

supported by the database, e.g. calling the :meth:`~Connection.rollback`

778+

method on a connection that does not support transaction or has

779+

transactions turned off. It is a subclass of :exc:`DatabaseError`.

780+
774781
775782

.. _sqlite3-types:

776783