
    2DhR                        S SK r SSKJr   " S S\5      r " S S\\5      r " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r0 rS r\" \\R"                  \R$                  \R&                  \R(                  \R*                  \R,                  \R.                  \R0                  \R2                  \R4                  \R6                  \R*                  \R8                  5        \" \	\R:                  \R<                  \R>                  \R@                  \RB                  \RD                  \RF                  \RH                  \RJ                  5
        \" \\RL                  \RN                  \RP                  \RR                  \RT                  \RV                  \RX                  5        \" \\RZ                  \R\                  \R^                  \R`                  5        \" \
\Rb                  \Rd                  \Rf                  \Rh                  \Rj                  \Rl                  \Rn                  5        CCS r8g)    N   )ERc                       \ rS rSrSrSrg)
MySQLError   z*Exception related to operation with MySQL. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       =/var/www/html/env/lib/python3.13/site-packages/pymysql/err.pyr   r      s    4r   r   c                       \ rS rSrSrSrg)Warning
   zSException raised for important warnings like data truncations
while inserting, etc.r   Nr	   r   r   r   r   r   
   s    r   r   c                       \ rS rSrSrSrg)Error   zMException that is the base class of all other error exceptions
(not Warning).r   Nr	   r   r   r   r   r      s    r   r   c                       \ rS rSrSrSrg)InterfaceError   zgException raised for errors that are related to the database
interface rather than the database itself.r   Nr	   r   r   r   r   r      s    2r   r   c                       \ rS rSrSrSrg)DatabaseError   z=Exception raised for errors that are related to the
database.r   Nr	   r   r   r   r   r      s    r   r   c                       \ rS rSrSrSrg)	DataError   zException raised for errors that are due to problems with the
processed data like division by zero, numeric value out of range,
etc.r   Nr	   r   r   r   r   r          r   r   c                       \ rS rSrSrSrg)OperationalError$   a+  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.r   Nr	   r   r   r   r#   r#   $   s    .r   r#   c                       \ rS rSrSrSrg)IntegrityError,   zException raised when the relational integrity of the database
is affected, e.g. a foreign key check fails, duplicate key,
etc.r   Nr	   r   r   r   r&   r&   ,   r!   r   r&   c                       \ rS rSrSrSrg)InternalError2   zException raised when the database encounters an internal
error, e.g. the cursor is not valid anymore, the transaction is
out of sync, etc.r   Nr	   r   r   r   r)   r)   2   s    r   r)   c                       \ rS rSrSrSrg)ProgrammingError8   zException raised for programming errors, e.g. table not found
or already exists, syntax error in the SQL statement, wrong number
of parameters specified, etc.r   Nr	   r   r   r   r,   r,   8   s    %r   r,   c                       \ rS rSrSrSrg)NotSupportedError>   zException 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.r   Nr	   r   r   r   r/   r/   >   s    $r   r/   c                 (    U H  nU [         U'   M     g )N)	error_map)excerrorserrors      r   
_map_errorr6   H   s    	% r   c                    [         R                  " SU SS 5      S   nU S   S:X  a  U SS  R                  SS5      nOU SS  R                  SS5      n[        R	                  U5      nUc  US	:  a  [
        O[        nU" X5      e)
Nz<hr      r   #   	   zutf-8replacei  )structunpackdecoder2   getr)   r#   )dataerrnoerrval
errorclasss       r   raise_mysql_exceptionrD      s    MM$Qq	*1-E Aw$ ab)4ab)4u%J&+dl]8H

U
##r   )9r<   	constantsr   	Exceptionr   r   r   r   r   r   r#   r&   r)   r,   r/   r2   r6   DB_CREATE_EXISTSSYNTAX_ERRORPARSE_ERRORNO_SUCH_TABLEWRONG_DB_NAMEWRONG_TABLE_NAMEFIELD_SPECIFIED_TWICEINVALID_GROUP_FUNC_USEUNSUPPORTED_EXTENSIONTABLE_MUST_HAVE_COLUMNS"CANT_DO_THIS_DURING_AN_TRANSACTIONWRONG_COLUMN_NAMEWARN_DATA_TRUNCATEDWARN_NULL_TO_NOTNULLWARN_DATA_OUT_OF_RANGE
NO_DEFAULTPRIMARY_CANT_HAVE_NULLDATA_TOO_LONGDATETIME_FUNCTION_OVERFLOWTRUNCATED_WRONG_VALUE_FOR_FIELDILLEGAL_VALUE_FOR_TYPE	DUP_ENTRYNO_REFERENCED_ROWNO_REFERENCED_ROW_2ROW_IS_REFERENCEDROW_IS_REFERENCED_2CANNOT_ADD_FOREIGNBAD_NULL_ERRORWARNING_NOT_COMPLETE_ROLLBACKNOT_SUPPORTED_YETFEATURE_DISABLEDUNKNOWN_STORAGE_ENGINEDBACCESS_DENIED_ERRORACCESS_DENIED_ERRORCON_COUNT_ERRORTABLEACCESS_DENIED_ERRORCOLUMNACCESS_DENIED_ERRORCONSTRAINT_FAILEDLOCK_DEADLOCKrD   r   r   r   <module>rn      sJ    5 5gz 
J 
2U 2
E 
 .} .] M %} %$ $ 	
 OONN))  MM!!&& LL	 $$   	 $r   