]> granicus.if.org Git - python/commitdiff
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
authorMarcin Niemira <marcin@niemira.net>
Sun, 8 Jul 2018 13:59:48 +0000 (15:59 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 8 Jul 2018 13:59:48 +0000 (16:59 +0300)
(cherry picked from commit bc9aa813a34474e517af8999565ff6151559d42f)

Co-authored-by: Marcin Niemira <marcin@niemira.net>
Doc/library/sqlite3.rst

index efc74a6bab8ca567683f94abc63b98440e11eb93..9f9c57c0f3b3dc8e51af53554dcbb58f1f5ef966 100644 (file)
@@ -828,6 +828,13 @@ Exceptions
    disconnect occurs, the data source name is not found, a transaction could
    not be processed, etc.  It is a subclass of :exc:`DatabaseError`.
 
+.. exception:: NotSupportedError
+
+   Exception raised in case a method or database API was used which is not
+   supported by the database, e.g. calling the :meth:`~Connection.rollback`
+   method on a connection that does not support transaction or has
+   transactions turned off.  It is a subclass of :exc:`DatabaseError`.
+
 
 .. _sqlite3-types: