Skip to content

Commit 0b63759

Browse files
Marcin Niemiraberkerpeksag
authored andcommitted
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
(cherry picked from commit bc9aa81) Co-authored-by: Marcin Niemira <[email protected]>
1 parent a410f9f commit 0b63759

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/sqlite3.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,13 @@ Exceptions
828828
disconnect occurs, the data source name is not found, a transaction could
829829
not be processed, etc. It is a subclass of :exc:`DatabaseError`.
830830

831+
.. exception:: NotSupportedError
832+
833+
Exception raised in case a method or database API was used which is not
834+
supported by the database, e.g. calling the :meth:`~Connection.rollback`
835+
method on a connection that does not support transaction or has
836+
transactions turned off. It is a subclass of :exc:`DatabaseError`.
837+
831838

832839
.. _sqlite3-types:
833840

0 commit comments

Comments
 (0)