[Python-checkins] bpo-31378: Document sqlite3.OperationalError exception (GH-7677)

Miss Islington (bot) webhook-mailer at python.org
Wed Jun 13 05:30:12 EDT 2018


https://github.com/python/cpython/commit/961332dfd3dbff4c63ed4d9f8b5de937aa63475b
commit: 961332dfd3dbff4c63ed4d9f8b5de937aa63475b
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-06-13T02:30:09-07:00
summary:

bpo-31378: Document sqlite3.OperationalError exception (GH-7677)

(cherry picked from commit 71ede00f140fa6b67a8ac17df68b80079efa8dc2)

Co-authored-by: Zackery Spytz <zspytz at gmail.com>

files:
M Doc/library/sqlite3.rst

diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index ef0c0bf64cda..b9ec24a655b4 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -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:
 



More information about the Python-checkins mailing list