]> 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:28:48 +0000 (02:28 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Jun 2018 09:28:48 +0000 (02:28 -0700)
(cherry picked from commit 71ede00f140fa6b67a8ac17df68b80079efa8dc2)

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

index d7eaea638f82cbeace48dbaafbdfa642a068f463..7d3cab9b67307cffcd870df08281fd2fafa7f0ba 100644 (file)
@@ -821,6 +821,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: