bgddlZddlmZGddeZGddeeZGdd eZGd d eZGd d eZGddeZ GddeZ GddeZ GddeZ GddeZ GddeZiZdZee ejejejejejejejejejejejejejee ejejejej ej!ej"ej#ej$ej% ee ej&ej'ej(ej)ej*ej+ej,eeej-ej.ej/ej0ee ej1ej2ej3ej4ej5ej6ej7[[dZ8dS)N)ERceZdZdZdS) MySQLErrorz*Exception related to operation with MySQL.N__name__ __module__ __qualname____doc__B/opt/cloudlinux/venv/lib64/python3.11/site-packages/pymysql/err.pyrrs4444r rceZdZdZdS)WarningzWException raised for important warnings like data truncations while inserting, etc.Nrr r rrr sr rceZdZdZdS)ErrorzQException that is the base class of all other error exceptions (not Warning).Nrr r rrrsr rceZdZdZdS)InterfaceErrorzkException raised for errors that are related to the database interface rather than the database itself.Nrr r rrrs2222r rceZdZdZdS) DatabaseErrorzAException raised for errors that are related to the database.Nrr r rrrsr rceZdZdZdS) DataErrorzException raised for errors that are due to problems with the processed data like division by zero, numeric value out of range, etc.Nrr r rrr    r rceZdZdZdS)OperationalErrora;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, a memory allocation error occurred during processing, etc.Nrr r rrr$s....r rceZdZdZdS)IntegrityErrorzException raised when the relational integrity of the database is affected, e.g. a foreign key check fails, duplicate key, etc.Nrr r rrr,rr rceZdZdZdS) InternalErrorzException raised when the database encounters an internal error, e.g. the cursor is not valid anymore, the transaction is out of sync, etc.Nrr r rrr2sr rceZdZdZdS)ProgrammingErrorzException raised for programming errors, e.g. table not found or already exists, syntax error in the SQL statement, wrong number of parameters specified, etc.Nrr r rr!r!8s%%%%r r!ceZdZdZdS)NotSupportedErrorzException raised in case a method or database API was used which is not supported by the database, e.g. requesting a .rollback() on a connection that does not support transaction or has transactions turned off.Nrr r rr#r#>s$$$$r r#c$|D] }|t|< dS)N) error_map)excerrorserrors r _map_errorr)Hs( %r ctjd|ddd}|dddd}t|}||dkrt nt }|||) Nzr`s 55555555gz J 22222U222 E         .....}...     ]   M %%%%%}%%% $$$$$ $$$    ON)   M!&    L    $      $$$$$r