zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
U
£ý°d
ã@sºdZGdd„deƒZGdd„deeƒZGdd„deƒZGdd„deƒZGd    d
„d
eƒZGd d „d eƒZGd d„deƒZGdd„deƒZ    Gdd„deƒZ
Gdd„deƒZ Gdd„deƒZ dS)z‰Exception classes for _mysql and MySQLdb.
 
These classes are dictated by the DB API v2.0:
 
    https://www.python.org/dev/peps/pep-0249/
c@seZdZdZdZdS)Ú
MySQLErrorz*Exception related to operation with MySQL.ÚMySQLdbN©Ú__name__Ú
__module__Ú __qualname__Ú__doc__©rrúJd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\MySQLdb/_exceptions.pyr    src@seZdZdZdZdS)ÚWarningzWException raised for important warnings like data truncations
    while inserting, etc.rNrrrrr    r
sr
c@seZdZdZdZdS)ÚErrorzQException that is the base class of all other error exceptions
    (not Warning).rNrrrrr    r sr c@seZdZdZdZdS)ÚInterfaceErrorzkException raised for errors that are related to the database
    interface rather than the database itself.rNrrrrr    r sr c@seZdZdZdZdS)Ú DatabaseErrorzAException raised for errors that are related to the
    database.rNrrrrr    r $sr c@seZdZdZdZdS)Ú    DataErrorzŒException raised for errors that are due to problems with the
    processed data like division by zero, numeric value out of range,
    etc.rNrrrrr    r+src@seZdZdZdZdS)Ú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.rNrrrrr    r3src@seZdZdZdZdS)ÚIntegrityErrorz‡Exception raised when the relational integrity of the database
    is affected, e.g. a foreign key check fails, duplicate key,
    etc.rNrrrrr    r=src@seZdZdZdZdS)Ú 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.rNrrrrr    rEsrc@seZdZdZdZdS)Ú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.rNrrrrr    rMsrc@seZdZdZdZdS)Ú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.rNrrrrr    rUsrN) rÚ    Exceptionrr
r r r rrrrrrrrrr    Ú<module>s