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