diff -r 4ef3a93e1be2 Doc/library/sqlite3.rst --- a/Doc/library/sqlite3.rst Wed Jun 15 11:35:29 2016 +0200 +++ b/Doc/library/sqlite3.rst Thu Jun 16 18:52:35 2016 +0530 @@ -113,6 +113,34 @@ :pep:`249` - Database API Specification 2.0 PEP written by Marc-André Lemburg. +.. _sqlite3-exceptions: + +Exceptions +---------- + + +.. exception:: IntegrityError + + Exception raised when the relational integrity of the database is + affected, e.g. a foreign key check fails. It is a subclass + of :exc:`DatabaseError`. + +.. exception:: Warning + + Exception raised for important warnings like data truncations + while inserting, etc. It is a subclass of :exc:`Exception`. + +.. exception:: Error + + Exception that is the base class of all other error + exceptions. You can use this to catch all errors with one single + ``except`` statement. Warnings are not considered errors and thus + should not use this class as base. It is a subclass of :exc:`Exception`. + +.. exception:: DatabaseError + + Exception raised for errors that are related to the database. It + is a subclass of :exc:`Error` .. _sqlite3-module-contents: