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

(cherry picked from commit 71ede00f14)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-06-13 02:30:09 -07:00 committed by GitHub
parent 439a9b6998
commit 961332dfd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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: