Exceptions to the Python DB API

Source: Internet
Author: User

We had a preview of the Python DB API exception yesterday, so let's take a look at it today:

1, all the abnormal super class: StandardError;

2, Waring: belong to the StandardError super class, the occurrence of non-fatal problems so abnormal;

3, Error: Belong to the StandardError super class, all the error conditions of the superclass;

4, Interfaceerror: belongs to the error superclass, the exception occurred with the interface (non-database) related errors;

5, Databaseerror: belong to the error super class, the occurrence of database-related errors of the superclass;

6, DataError: belongs to the Databaseerror superclass, the occurrence of data-related problems caused by the exception, the value is not within the reasonable range;

7, Operationerror: belongs to the Databaseerror super class, the error occurred inside the database operation caused by the exception;

8, Integrityerror: Belong to the Databaseerror super class, the relationship integrity caused by the failure of the exception;

9, Internalerror: Belongs to Databaseerror superclass, database internal error, such as invalid cursor;

10, Programmingerror: Belongs to Databaseerror Super class, user programming error, such as the database table is not found;

(If the article image is infringing, please contact the author to delete)

Exceptions to the Python DB API

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.