Skip to content

Commit 4041565

Browse files
Marcin Niemiraberkerpeksag
authored andcommitted
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
(cherry picked from commit bc9aa81) Co-authored-by: Marcin Niemira <marcin@niemira.net>
1 parent b7874c8 commit 4041565

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎Doc/library/sqlite3.rst‎

Lines changed: 7 additions & 0 deletions
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

0 commit comments

Comments
 (0)