hyb
2025-11-18 7539e6f48c75dcaeb808359cccfd1c0d0d182ce8
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
Ë
WñúhF4ãó–—UdZddlmZmZmZmZmZmZddlm    Z    ddl
m Z ddl m Z mZGd„de«ZGd    „d
e«ZGd „d e«ZGd „de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„d e«ZGd!„d"e«Zeeeeeeeeeeeeeeeeeeeeeeeeeeef ZeeeeeeeeeeeeeeefZia ee!efe"d#<        dEd%eee!ee!eeffd&eed'ee!eeffd(„Z#            dFd)e!d*ee$d+ee$d,ee%d'ef
d-„Z&d.e'd'efd/„Z(id0e“d1e“d2e“d3e“d4e“d5e“d6e“d7e“d8e“d9e“d:e“d;e“d<e“d=e“d>e“d?e“d@e“eeeeeeeeeeeeeedAœ¥Z)ee$efe"dB<eeeeeeeedCœZ*ee!efe"dD<y$)GzPython exceptions.é)ÚDictÚMappingÚOptionalÚTupleÚTypeÚUnioné)Úget_client_error)Ú
StrOrBytes)Ú
read_bytesÚread_intc óz‡—eZdZdZ                d deedeedeeeeefdfdeeddf
ˆfd    „ Z    defd
„Z
ˆxZ S) ÚErrorzÓException that is base class for all other error exceptions.
 
    See [1] for more details.
 
    References:
        [1]: https://dev.mysql.com/doc/connector-python/en/connector-python-api-errors-error.html
    NÚmsgÚerrnoÚvalues.ÚsqlstateÚreturncóÖ•—t‰|«||_|j|_|xsd|_||_|jsJd|jcxkrdkr5nn2t |j«|_|0    |j|z|_n|jsdx|_|_|jr_|jdk7rP|j|jdœ}|j
rd}|j
|d    <nd
}|jd i|¤Ž|_|j|j|j
f|_    y#t$r!}|j›d|›d|_Yd}~Œ¹d}~wwxYw) NéÿÿÿÿiÐi¸ z  (Warning: ú)z Unknown error)rrz{errno} ({state}): {msg}Ústatez{errno}: {msg}©)
ÚsuperÚ__init__rÚ    _full_msgrrr
Ú    TypeErrorÚformatÚargs)    ÚselfrrrrÚerrÚfieldsÚfmtÚ    __class__s            €úIH:\Change_password\venv_build\Lib\site-packages\mysql/connector/errors.pyrzError.__init__.s*ø€ô    ‰ÑÔØˆŒØŸ™ˆŒØ’[˜bˆŒ
Ø ˆŒ àxŠx˜T T§Z¡ZÔ6°$Õ6Ü'¨¯
©
Ó3ˆDŒHØÐ!ð>Ø#Ÿx™x¨&Ñ0D•Hð—’Ø(7Ð 7ˆDŒN˜TœXà 8Š8˜Ÿ
™
 bÒ(Ø#Ÿz™z°$·(±(Ñ;ˆF؏}Š}Ø0Ø"&§-¡-w’à&Ø'˜SŸZ™ZÑ1¨&Ñ1ˆDŒNà—Z‘Z §¡°·±Ð?ˆ    øô!ò>Ø"&§(¡( ¨;°s°e¸1Ð=D—H‘Hûð>úsÁ;D>Ä>    E(ÅE#Å#E(có—|jS©N)r)r s r%Ú__str__z Error.__str__Ps €Ø~‰~Ðó©NNNN) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚstrÚintrrrr(Ú __classcell__©r$s@r%rr%sø„ñð"Ø#Ø8<Ø"&ñ  @à c‰]ð @ð˜‰}ð @ð˜˜u S¨# X™°Ð3Ñ4Ñ5ð     @ð
˜3‘-ð  @ð
õ  @ðD˜÷r)rcó—eZdZdZy)ÚWarningz Exception for important warningsN©r+r,r-r.rr)r%r4r4Ts„Ú*r)r4có—eZdZdZy)ÚInterfaceErrorz-Exception for errors related to the interfaceNr5rr)r%r7r7Xó„Ú7r)r7có—eZdZdZy)Ú DatabaseErrorz,Exception for errors related to the databaseNr5rr)r%r:r:\s„Ú6r)r:có—eZdZdZy)Ú InternalErrorz-Exception for errors internal database errorsNr5rr)r%r<r<`r8r)r<có—eZdZdZy)ÚOperationalErrorz8Exception for errors related to the database's operationNr5rr)r%r>r>ds„ÚBr)r>có—eZdZdZy)ÚProgrammingErrorz'Exception for errors programming errorsNr5rr)r%r@r@hs„Ú1r)r@có—eZdZdZy)ÚIntegrityErrorz3Exception for errors regarding relational integrityNr5rr)r%rBrBló„Ú=r)rBcó—eZdZdZy)Ú    DataErrorz;Exception for errors reporting problems with processed dataNr5rr)r%rErEps„ÚEr)rEcó—eZdZdZy)ÚNotSupportedErrorzBException for errors when an unsupported database feature was usedNr5rr)r%rGrGts„ÚLr)rGcó—eZdZdZy)Ú    PoolErrorz3Exception for errors relating to connection poolingNr5rr)r%rIrIxrCr)rIcó—eZdZdZy)ÚConnectionTimeoutErrorzo
    Exception for errors related to the socket connection timing out while connecting with
    the server
    Nr5rr)r%rKrK|s„òr)rKc ót‡—eZdZUdZdZeed<                d deedeedee    eefdeed    df
ˆfd
„ Z
ˆxZ S) ÚReadTimeoutErrorzWException for errors relating to socket timing out while receiving data from the serverzà
    The Read Operation timed out. As a consequence the current connection has been closed to avoid
    any unstable behaviour, consider using the reconnect() option and continue with the current
    session's workflow.
    ÚDEFAULT_READ_TIMEOUT_ERROR_MSGNrrrrrcó>•—t‰||j|||«yr')rrrN©r rrrrr$s     €r%rzReadTimeoutError.__init__Œsø€ô    ‰Ñ˜×<Ñ<¸eÀVÈXÕVr)r*) r+r,r-r.rNr/Ú__annotations__rr0rrr1r2s@r%rMrMƒs}ø…Ùað+Ð" Cóð"Ø#Ø,0Ø"&ñ Wà c‰]ðWð˜‰}ðWð˜˜s C˜x™Ñ)ð    Wð
˜3‘-ð Wð
÷ WñWr)rMc ót‡—eZdZUdZdZeed<                d deedeedee    eefdeed    df
ˆfd
„ Z
ˆxZ S) ÚWriteTimeoutErrorzSException for errors relating to socket timing out while sending data to the serverzà
    The Write Operation timed out. As a consequence the current connection has been closed to avoid
    any unstable behaviour, consider using the reconnect() option to continue with the current
    session's workflow.
    ÚDEFAULT_WRITE_TIMEOUT_ERROR_MSGNrrrrrcó>•—t‰||j|||«yr')rrrTrPs     €r%rzWriteTimeoutError.__init__Ÿsø€ô    ‰Ñ˜×=Ñ=¸uÀfÈhÕWr)r*) r+r,r-r.rTr/rQrr0rrr1r2s@r%rSrS–s}ø…Ù]ð,Ð# Sóð"Ø#Ø,0Ø"&ñ Xà c‰]ðXð˜‰}ðXð˜˜s C˜x™Ñ)ð    Xð
˜3‘-ð Xð
÷ XñXr)rSÚ_CUSTOM_ERROR_EXCEPTIONSNÚerrorÚ    exceptionrcó¦—t|t«r
|siatS|s|stSt|ttf«s t    d«‚t|t«r||i}|j «D]C\}}t|t«s t    d«‚    |t |t«st‚    |t|<ŒEtS#t$r}t    d«|‚d}~wwxYw)a˜Defines custom exceptions for MySQL server errors.
 
    This function defines custom exceptions for MySQL server errors and
    returns the current set customizations.
 
    To reset the customizations, simply supply an empty dictionary.
 
    Args:
        error: Can be a MySQL Server error number or a dictionary in which case the
               key is the server error number and the value is the exception to be raised.
        exception: If `error` is a MySQL Server error number then you have to pass
                   also the exception class, otherwise you don't.
 
    Returns:
        dictionary: Current set customizations.
 
    Examples:
        ```
        import mysql.connector
        from mysql.connector import errorcode
 
        # Server error 1028 should raise a DatabaseError
        mysql.connector.custom_error_exception(
            1028, mysql.connector.DatabaseError)
 
        # Or using a dictionary:
        mysql.connector.custom_error_exception({
            1028: mysql.connector.DatabaseError,
            1029: mysql.connector.OperationalError,
            })
 
        # Reset
        mysql.connector.custom_error_exception({})
        ```
    z<The error argument should be either an integer or dictionaryz!Error number should be an integerNz)Exception should be subclass of Exception)    Ú
isinstanceÚdictrVr0Ú
ValueErrorÚitemsÚ
issubclassÚ    Exceptionr)rWrXrÚ
_exceptionr!s     r%Úcustom_error_exceptionraÎs݀ôR%œÔ¡uØ#%РÜ'Ð'á ™Ü'Ð'ä eœc¤4˜[Ô )ÜÐWÓXÐXä%œÔؘ    Ð"ˆà"Ÿ[™[›]ò5шˆzܘ%¤Ô%ÜÐ@ÓAÐ Að    SØÐ!¬°JÄ    Ô)Jܐð*Kð+5Ô  Ò'ð5ô $Ð#øô    ò    SÜÐHÓIÈsÐ Rûð    Sús B6Â6    CÂ? C à CrrrÚwarningcó$—    t||||¬«S#t$rYnwxYw    t||||¬«S#t$rYnwxYw|s|r t||«St    ||¬«S    t |dd|||¬«S#t$rt    |||¬«cYSwxYw)a>Get the exception matching the MySQL error
 
    This function will return an exception based on the SQLState. The given
    message will be passed on in the returned exception.
 
    The exception returned can be customized using the
    mysql.connector.custom_error_exception() function.
 
    Returns an Exception
    )rrr)rrré)rVÚKeyErrorÚ_ERROR_EXCEPTIONSr4r:Ú_SQLSTATE_CLASS_EXCEPTION)rrrrbs    r%Úget_mysql_exceptionrhsÁ€ð  Ü'¨Ñ.°3¸eÈhÔWÐWøÜ ò á ð úð Ü  Ñ'¨C°uÀxÔPÐPøÜ ò á ð úñ ٠ܘ5 #Ó&Ð &Ü ¨EÔ2Ð2ðFÜ(¨°!°A¨Ñ7ؘ5¨8ô
ð    
øô òFä ¨E¸HÔEÒEðFús,‚“    ž£4´    A¿AÁ!A5Á5BÂBÚpacketcóê—dx}}    |ddk7r td«‚    d}    |dd}t|d«\}}|d    d
k7r+t    |t
t f«r|jd «}n7|}n4t|d dd«\}}|jd «}|jd «}t|||«S#t$r}td|›d«cYd}~Sd}~wwxYw#ttf$r}td|›d«cYd}~Sd}~wwxYw) zªReturns an exception object based on the MySQL error
 
    Returns an exception object based on the MySQL error in the given
    packet.
 
    Returns an Error-Object.
    NééÿzPacket is not an error packetz"Failed getting Error information (rérdré#Úutf8r    ) r\Ú
IndexErrorr7r rZÚbytesÚ    bytearrayÚdecoder Ú UnicodeErrorrh)rirÚerrmsgr!rs     r%Ú get_exceptionrv;s €ðЀEˆFðKØ !‰9˜Ò ÜÐ<Ó=Ð =ð ð
&*€HðKؘ˜ˆÜ  ¨Ó+‰ ˆØ !‰9˜Š?ä˜&¤5¬)Ð"4Ô5ØŸ™ vÓ.‘à‘ä)¨&°°¨*°aÓ8Ñ ˆFHØ—‘ vÓ.ˆHØ—]‘] 6Ó*ˆFô ˜u f¨hÓ 7Ð7øô' òKÜРBÀ3À%ÀqÐIÓJÕJûðKûô" œ Ð %òKÜРBÀ3À%ÀqÐIÓJÕJûðKús;†B%A;C
Â%    CÂ.CÂ<CÃCÃ
C2ÃC-Ã'C2Ã-C2Ú02Ú07Ú08Ú0AÚ21Ú22Ú23Ú24Ú25Ú26Ú27Ú28Ú2AÚ2BÚ2CÚ2DÚ2E)Ú33Ú34Ú35Ú37Ú3CÚ3DÚ3FÚ40Ú42Ú44ÚHZÚXAÚ0KÚHYrg)iÛiºiÒiÝiii iêrf)NN)NNF)+r.ÚtypingrrrrrrÚlocalesr
Útypesr Úutilsr r r_rr4r7r:r<r>r@rBrErGrIrKrMrSÚErrorClassTypesÚ
ErrorTypesrVr0rQrar/Úboolrhrqrvrgrfrr)r%ú<module>rs®ðò:ß>×>å%Ýß'ô,ˆIô,ô^+ˆiô+ô8Uô8ô7Eô7ô8Mô8ôC}ôCô2}ô2ô>]ô>ôF ôFôM˜ ôMô>ô>ô˜UôôWuôWô&X˜ôXð&؈KØˆÑØˆÑØˆÑØР   ÑØР   ÑØˆÑØˆOØР   Ñ؈OØР   Ñ ØР   ÑØР   Ñð ñ€ðØ    ØØØØØØØ ØØ Ø ØØØð ñ€
ð&8:И$˜s OÐ3Ñ4Ó9ðIMØ+/ñ@$Ø E˜#˜t C¨°/Ñ)BÐ$BÑCÐCÑDÑ Eð@$à˜Ñ(ð@$ð ˆS(˜?Ñ+Ð +Ñ,ó@$ðJØ"Ø#ñ    'FØ ð'Fà    #‰ð'Fðs‰mð'Fðd‰^ð    'Fð
ó 'FðT 8˜%ð 8 Jó 8ðF 9؈)ð 9àˆ-ð 9ð    Ð
ð 9ð    Ð
ð     9ð
    ˆ)ð  9ð     ˆ)ð  9ð    ˆ.ð 9ð    Ð
ð 9ð    Ð
ð 9ð    Ð
ð 9ð    Ð
ð 9ð    Ð
ð 9ð    Ð
ð 9ð    ˆ-ð 9ð    Ð
ð 9ð     ˆ-ð! 9ð"    ˆ-ð# 9ð$ Ø
ò? 9И4  _Р4Ñ5ó ðF Ø
ñ    1А4˜˜_Ð,Ñ-ô    r)