관리-도구
편집 파일: _mysql_exceptions.cpython-37.opt-2.pyc
B h�W � @ s� d Z yddlmZmZmZ W n ek r4 eZY nX G dd� de�ZG dd� dee�ZG dd� de�ZG d d � d e�ZG dd� de�Z G d d� de �Z G dd� de �ZG dd� de �ZG dd� de �Z G dd� de �ZG dd� de �ZdS )z�_mysql_exceptions: Exception classes for _mysql and MySQLdb. These classes are dictated by the DB API v2.0: https://www.python.org/dev/peps/pep-0249/ � )� Exception� StandardError�Warningc @ s e Zd ZdZdS )� MySQLErrorz*Exception related to operation with MySQL.N)�__name__� __module__�__qualname__�__doc__� r r �D/opt/alt/python37/lib64/python3.7/site-packages/_mysql_exceptions.pyr s r c @ s e Zd ZdZdS )r zWException raised for important warnings like data truncations while inserting, etc.N)r r r r r r r r r s r c @ s e Zd ZdZdS )�ErrorzQException that is the base class of all other error exceptions (not Warning).N)r r r r r r r r r s r c @ s e Zd ZdZdS )�InterfaceErrorzkException raised for errors that are related to the database interface rather than the database itself.N)r r r r r r r r r s r c @ s e Zd ZdZdS )� DatabaseErrorzAException raised for errors that are related to the database.N)r r r r r r r r r % s r c @ s e Zd ZdZdS )� DataErrorz�Exception raised for errors that are due to problems with the processed data like division by zero, numeric value out of range, etc.N)r r r r r r r r r + s r c @ s e Zd ZdZdS )�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.N)r r r r r r r r r 2 s r c @ s e Zd ZdZdS )�IntegrityErrorz�Exception raised when the relational integrity of the database is affected, e.g. a foreign key check fails, duplicate key, etc.N)r r r r r r r r r ; s r c @ s e Zd ZdZdS )� InternalErrorz�Exception raised when the database encounters an internal error, e.g. the cursor is not valid anymore, the transaction is out of sync, etc.N)r r r r r r r r r B s r c @ s e Zd ZdZdS )�ProgrammingErrorz�Exception raised for programming errors, e.g. table not found or already exists, syntax error in the SQL statement, wrong number of parameters specified, etc.N)r r r r r r r r r I s r c @ s e Zd ZdZdS )�NotSupportedErrorz�Exception 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.N)r r r r r r r r r P s r N)r � exceptionsr r r �ImportErrorr r r r r r r r r r r r r r �<module> s