HEX
Server: Apache
System: Linux a16-asgard6.hospedagemuolhost.com.br 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: maoristu4c3dbd03 (1436)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/up2date_client/__pycache__/up2dateErrors.cpython-39.pyc
a

c8h)�@s�ddlZejddd�Zeed�s(eje_ejZddlZddlmZddl	m
Z
ddl	mZdd	lm
Z
ddlZejd
d�ejdd
�e_zddlmZWnFey�zddlmZWn"ey�Gd
d�de�ZYn0Yn0Gdd�de�ZGdd�de�ZzddlmZWn>e�yRzddlmZWne�yLeZYn0Yn0Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�Z Gd$d%�d%e�Z!Gd&d'�d'e�Z"Gd(d)�d)e!e�Z#Gd*d+�d+e!�Z$Gd,d-�d-e!e�Z%Gd.d/�d/e%�Z&Gd0d1�d1e�Z'Gd2d3�d3e!�Z(Gd4d5�d5e!�Z)Gd6d7�d7e!e�Z*Gd8d9�d9e!e�Z+Gd:d;�d;e!e�Z,Gd<d=�d=e�Z-Gd>d?�d?e!�Z.Gd@dA�dAe�Z/GdBdC�dCee�Z0GdDdE�dEe�Z1GdFdG�dGe%�Z2GdHdI�dIe�Z3GdJdK�dKe�Z4GdLdM�dMe!�Z5GdNdO�dOe!�Z6GdPdQ�dQe!�Z7GdRdS�dSe!�Z8GdTdU�dUe!�Z9GdVdW�dWe�Z:GdXdY�dYe!�Z;GdZd[�d[e!�Z<dS)\�Nzrhn-client-toolsT)�fallback�ugettext)�ustr)�config)�
up2dateLog)�getPlatform�)�YumBaseError)�Errorc@s$eZdZdd�Zdd�Zdd�ZdS)�PmBaseErrorcCs
||_dS�N��value��self�errmsg�r�@/usr/lib/python3.9/site-packages/up2date_client/up2dateErrors.py�__init__-szPmBaseError.__init__cCsttd�|jj|f��dS)N�class %s has no attribute '%s')�AttributeError�_�	__class__�__name__�r�namerrr�__getattr__/szPmBaseError.__getattr__cCs"|dvr||jd<n
||j|<dS)N)rrr)�__dict__�rrrrrr�__setattr__1szPmBaseError.__setattr__N)r�
__module__�__qualname__rrrrrrrr,src@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)r
zbase class for errors�cCs2t|�}t�||�d|j||_t��|_dS)Nzrhn-plugin: )rrr�premsgrrZinitLog�logrrrrr;szError.__init__cCs|j�|j�|jSr)r$Zlog_mer�rrrr�__repr__AszError.__repr__cCsT|dkr|jSttd�r$t�||�S||jvr8|j|Sttd�|jj|f��dS)�G Spacewalk backend still use errmsg, let have errmsg as alias to value rrrN)	r�hasattrrrrrrrrrrrrrEs


zError.__getattr__cCs<|dkr||jd<n$ttd�r.t�|||�n
||j|<dS)r'rrrN)rr(rrrrrrrSs

zError.__setattr__N)	rr r!�__doc__r#rr&rrrrrrr
8sr
c@seZdZdS)�DebAndSuseRepoErrorN�rr r!rrrrr*^sr*)�	RepoErrorc@seZdZdZed�ZdS)�RpmErrorz$rpm itself raised an error conditionzRPM error.  The message was:
N�rr r!r)rr#rrrrr-jsr-c@seZdZdS)�RhnServerExceptionNr+rrrrr/nsr/c@seZdZdZed�ZdS)�
PasswordErrorz@Raise when the server responds with that a password is incorrectz!Password error. The message was:
Nr.rrrrr0qsr0c@s"eZdZdZed�Zddd�ZdS)�DependencyErrorz7Raise when a rpm transaction set has a dependency errorz'RPM dependency error. The message was:
NcCst�||�||_dSr)r
r�deps)r�msgr2rrrrxszDependencyError.__init__)N)rr r!r)rr#rrrrrr1usr1c@seZdZdZed�ZdS)�CommunicationErrorzDIndicates a problem doing xml-rpc http communication with the serverz2Error communicating with server. The message was:
Nr.rrrrr4sr4c@seZdZdZed�ZdS)�FileNotFoundErrorzR
    Raise when a package or header that is requested returns
    a 404 error codezFile Not Found: 
Nr.rrrrr5�sr5c@seZdZdZed�ZdS)�
DelayErrorzO
    Raise when the expected response from a xml-rpc call
    exceeds a timeoutz+Delay error from server.  The message was:
Nr.rrrrr6�sr6c@s eZdZdZdd�Zdd�ZdS)�RpmRemoveErrorzP
    Raise when we can't remove a package for some reason
    (failed deps, etc)cCs\t�|d�||_|j��D]2}t|j|�|j|<|jd||j|f|_q|j|_dS)Nr"z%s failed because of %s
)r
r�args�keysrr�data)rr8�keyrrrr�s
�zRpmRemoveError.__init__cCs|jSrr
r%rrrr&�szRpmRemoveError.__repr__N)rr r!r)rr&rrrrr7�sr7c@seZdZdd�Zdd�ZdS)�
NoLogErrorcCst|�}|j||_dSr)rr#r�rr3rrrr�szNoLogError.__init__cCs|jSrr
r%rrrr&�szNoLogError.__repr__N�rr r!rr&rrrrr<�sr<c@seZdZdS)�
AbuseErrorNr+rrrrr?�sr?c@seZdZdS)�AuthenticationTicketErrorNr+rrrrr@�sr@c@seZdZdS)�AuthenticationErrorNr+rrrrrA�srAc@seZdZdZed�ZdS)�ValidationError�1indicates an error during server input validationz!Error validating data at server:
Nr.rrrrrB�srBc@seZdZdS)�InvalidRegistrationNumberErrorNr+rrrrrD�srDc@s$eZdZdd�Zdd�Zdd�ZdS)�RegistrationDeniedErrorcCst�||���dSr�r/r�changeExplanationr%rrrr�sz RegistrationDeniedError.__init__cCs|jSrr
r%rrrr&�sz RegistrationDeniedError.__repr__cCstd�S)Nz�
CloudLinux Network Classic is not supported.
To register with CloudLinux Subscription Management please run:

    subscription-manager register --auto-attach

Get more information at www.cloudlinux.com
    )rr%rrrrG�sz)RegistrationDeniedError.changeExplanationN�rr r!rr&rGrrrrrE�srEc@seZdZdZed�ZdS)�InvalidProductRegistrationErrorrCz"The installation number is invalidNr.rrrrrI�srIc@seZdZed�ZdS)�OemInfoFileErrorz)Error parsing the oemInfo file at field:
N)rr r!rr#rrrrrJ�srJc@seZdZdZdS)�NoBaseChannelErrorz/No valid base channel was found for this systemN�rr r!r)rrrrrK�srKc@seZdZdS)�UnknownMethodExceptionNr+rrrrrM�srMc@seZdZdS)�RhnUuidUniquenessErrorNr+rrrrrN�srNc@seZdZddd�Zdd�ZdS)�ServerCapabilityErrorNcCs t�||�g|_|r||_dSr)r
r�	errorlist)rr3rPrrrr�szServerCapabilityError.__init__cCs|jSrr
r%rrrr&�szServerCapabilityError.__repr__)Nr>rrrrrO�s
rOc@seZdZdS)�NoChannelsErrorNr+rrrrrQ�srQc@seZdZdZed�ZdS)�NetworkErrorzD some generic network error occurred, e.g. connection reset by peer zNetwork error: Nr.rrrrrR�srRc@seZdZdd�ZejZdS)�SSLCertificateVerifyFailedErrorcCsft��}|d}t|d�}|��}|��tj�tjj|�}|�	�rVt
�|d|�nt
�|d�dS)NZ	sslCACert�rznThe certificate %s is expired. Please ensure you have the correct certificate and your system time is correct.z(The SSL certificate failed verification.)rZinitUp2dateConfig�open�read�close�OpenSSLZcryptoZload_certificateZFILETYPE_PEMZhas_expiredr,r)rZ
up2dateConfigZcertFile�f�bufZtempCertrrrr�s
�z(SSLCertificateVerifyFailedError.__init__N)rr r!rr
rrrrrrS�srSc@seZdZdS)�SSLCertificateFileNotFoundNr+rrrrr[�sr[c@seZdZdZdS)�$AuthenticationOrAccountCreationErrora%Class that can represent different things depending on context:
    While logging in with an existing user it represents a username or password
    being incorrect.
    While creating a new account, it represents the username already being
    taken or the user not being allowed to create an account.
    Optimally these different things would be different exceptions, but there
    are single fault codes the server can return to the client that can mean
    more than one of them so we have no way of knowing which is actually
    intended.

    NrLrrrrr\sr\c@seZdZdS)�NotEntitlingErrorNr+rrrrr]sr]c@seZdZdS)�InvalidProtocolErrorNr+rrrrr^sr^c@seZdZdS)�UnableToCreateUserNr+rrrrr_sr_c@seZdZdS)�ActivationKeyUsageLimitErrorNr+rrrrr`sr`c@seZdZdS)�LoginMinLengthErrorNr+rrrrrasrac@seZdZdS)�PasswordMinLengthErrorNr+rrrrrbsrbc@seZdZdS)�PasswordMaxLengthErrorNr+rrrrrc!srcc@s$eZdZdd�Zdd�Zdd�ZdS)�InsuffMgmntEntsErrorcCst�||�|��dSrrFr=rrrr&szInsuffMgmntEntsError.__init__cCs|jSrr
r%rrrr&)szInsuffMgmntEntsError.__repr__cCs.td�}d}|�|�t|�}|d|�|S)Na�
    Your organization does not have enough Management entitlements to register this
    system to CloudLinux Network. Please notify your organization administrator of this error.
    You should be able to register this system after your organization frees existing
    or purchases additional entitlements. Additional entitlements may be purchased by your
    organization administrator by logging into CloudLinux Network and visiting

    A common cause of this error code is due to having mistakenly setup an
    Activation Key which is set as the universal default.  If an activation key is set
    on the account as a universal default, you can disable this key and retry to avoid
    requiring a Management entitlement.zExplanation:)r�rindex�len)rr3ZnewExplnZterm�locrrrrG,sz&InsuffMgmntEntsError.changeExplanationNrHrrrrrd%srdc@seZdZdS)�NoSystemIdErrorNr+rrrrrh<srhc@seZdZdZdS)�InvalidRedirectionErrorz7 Raise when redirect requests could'nt return a packageNrLrrrrri?sri)=�gettext�translation�tr(rrrXZrhn.i18nrZup2date_clientrrZup2date_client.pkgplatformr�sys�pathZ
yum.Errorsr	r�ImportErrorZdnf.exceptionsr
�	Exceptionr*r,r-r/r0r1r4r5r6r7r<r?r@rArBrDrErIrJrKrMrNrOrQrRrSr[r\r]r^r_r`rarbrcrdrhrirrrr�<module>s~
&