[Python-checkins] bpo-31378: Document sqlite3.OperationalError exception (GH-7677)
Miss Islington (bot)
webhook-mailer at python.org
Wed Jun 13 05:28:52 EDT 2018
https://github.com/python/cpython/commit/eea4f149717cc83038641ca53f6f74be785de6f1
commit: eea4f149717cc83038641ca53f6f74be785de6f1
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年06月13日T02:28:48-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 d7eaea638f82..7d3cab9b6730 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -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:
More information about the Python-checkins
mailing list