Skip to content

Commit bc9aa81

Browse files
Marcin Niemiraberkerpeksag
authored andcommitted
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
1 parent 25b804a commit bc9aa81

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Doc/library/sqlite3.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Connection Objects
346346
called as the SQL function. If *deterministic* is true, the created function
347347
is marked as `deterministic <https://sqlite.org/deterministic.html>`_, which
348348
allows SQLite to perform additional optimizations. This flag is supported by
349-
SQLite 3.8.3 or higher, ``sqlite3.NotSupportedError`` will be raised if used
349+
SQLite 3.8.3 or higher, :exc:`NotSupportedError` will be raised if used
350350
with older versions.
351351

352352
The function can return any of the types supported by SQLite: bytes, str, int,
@@ -835,6 +835,13 @@ Exceptions
835835
disconnect occurs, the data source name is not found, a transaction could
836836
not be processed, etc. It is a subclass of :exc:`DatabaseError`.
837837

838+
.. exception:: NotSupportedError
839+
840+
Exception raised in case a method or database API was used which is not
841+
supported by the database, e.g. calling the :meth:`~Connection.rollback`
842+
method on a connection that does not support transaction or has
843+
transactions turned off. It is a subclass of :exc:`DatabaseError`.
844+
838845

839846
.. _sqlite3-types:
840847

0 commit comments

Comments
 (0)