]> granicus.if.org Git - python/commitdiff
bpo-31378: Document sqlite3.OperationalError exception (GH-7677)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Jun 2018 09:30:09 +0000 (02:30 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Jun 2018 09:30:09 +0000 (02:30 -0700)
(cherry picked from commit 71ede00f140fa6b67a8ac17df68b80079efa8dc2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/library/sqlite3.rst

index ef0c0bf64cdadd76c2465da52ccb9b3689e9f0d5..b9ec24a655b4ff2a93a90447eb38a465f416d115 100644 (file)
@@ -764,6 +764,13 @@ Exceptions
    exists, syntax error in the SQL statement, wrong number of parameters
    specified, etc.  It is a subclass of :exc:`DatabaseError`.
 
+.. exception:: OperationalError
+
+   Exception raised for errors that are related to the database's operation
+   and not necessarily under the control of the programmer, e.g. an unexpected
+   disconnect occurs, the data source name is not found, a transaction could
+   not be processed, etc.  It is a subclass of :exc:`DatabaseError`.
+
 
 .. _sqlite3-types: