the db-api mysqlerror class that extends exception and is then extended by both warning and error also note that warning and error have no relationship with each other this is because warnings are not considered errors and thus have separate class hierarchies howeverthe error is the root class for all database error classes description of each warning or error class is provided below warning error interfaceerror databaseerror dataerror operationalerror integrityerror internalerror programmingerror notsupportederror used to warn of issues such as data truncations during insertingetc the base class of all other error exceptions exception raised for errors that are related to the database interface rather than the database itself exception raised for errors that are related to the database exception raised for errors that are due to problems with the data such as division by zeronumeric value out of rangeetc exception raised for errors that are related to the database' operation and not necessarily under the control of the programmere an unexpected disconnect occursetc exception raised when the relational integrity of the database is affected exception raised when the database encounters an internal errore the cursor is not valid anymorethe transaction is out of syncetc exception raised for programming errorse table not foundsyntax error in the sql statementwrong number of parameters specifiedetc exception raised in case method or database api was used which is not supported by the databasee requesting rollback(on connection that does not support transactions or has transactions turned off row descriptions the cursor object has an attribute description that provides sequence of sequenceseach sub sequence provides description of one of the attributes of the data returned by select statement the sequence describing the attribute is made up of up to seven itemsthese includename representing the name of the attributetype_code which indicates what python type this attribute has been mapped todisplay_size the size used to display the attributeinternal_size the size used internally to represent the value