
    :?h                     T    S r S/rSSKJrJr  SSKJr  SS\\\4   S\S\\   4S	 jjr	g
)zTranslations.get_client_error    )OptionalUnion   )	errorcodeerrorlanguagereturnc                     [        SU 3[        5       [        5       S/5      nUR                  n[        U [        5      (       a2  U n[        R                  R                  5        H  u  pVXd:X  d  M  Un   O   [        U [        5      (       a   [        X05      $ [        S5      e! [         a    [        SU S35      Sef = f! [         a     gf = f)a  Lookup client error

This function will lookup the client error message based on the given
error and return the error message. If the error was not found,
None will be returned.

Error can be either an integer or a string. For example:
    error: 2000
    error: CR_UNKNOWN_ERROR

The language attribute can be used to retrieve a localized message, when
available.

Returns a string or None.
zmysql.connector.locales.client_errorz&No localization support for language ''Nz6error argument needs to be either an integer or string)
__import__globalslocalsImportErrorr   
isinstanceintr   __dict__itemsstrgetattrAttributeError
ValueError)r   r	   tmpr   errnokeyvalues          _/var/www/ev-aguas/ev-aguas-proceso/venv/lib/python3.13/site-packages/mysqlx/locales/__init__.pyr   r   &   s     
&xj1IH	
 ##L%#,,224JC~ 5
 %#	<// M
NN'  4XJa@
	   		s   "B# 
C #B>
CCN)eng)
__doc____all__typingr   r    r   r   r   r        r   <module>r&      sC   : 
 " *OE#s(O *Os *OxPS} *Or%   