HEX
Server: LiteSpeed
System: Linux w5304130.sdnsbox.com 4.18.0-425.3.1.lve.el8.x86_64 #1 SMP Tue Nov 22 22:59:23 EST 2022 x86_64
User: makefitmeserver (1001)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/up2date_client/__pycache__/up2dateErrors.cpython-36.pyc
3

U��Zp)�!@s�ddlZejddd�Zeed�s(eje_ejZddlZddlmZddl	m
Z
ddlmZdd	lm
Z
dd
lmZddlZejdd�ejdd�e_yddlmZWnJek
r�ydd
lmZWn$ek
r�Gdd�de�ZYnXYnXGdd�de�ZGdd�de�ZyddlmZWnBek
�rfyddlmZWnek
�r`eZYnXYnXGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd �d e�Z Gd!d"�d"e�Z!Gd#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/d0�d0e'�Z(Gd1d2�d2e�Z)Gd3d4�d4e#�Z*Gd5d6�d6e#�Z+Gd7d8�d8e#e�Z,Gd9d:�d:e#e�Z-Gd;d<�d<e#e�Z.Gd=d>�d>e�Z/Gd?d@�d@e#�Z0GdAdB�dBe�Z1GdCdD�dDee�Z2GdEdF�dFe�Z3GdGdH�dHe'�Z4GdIdJ�dJe�Z5GdKdL�dLe�Z6GdMdN�dNe#�Z7GdOdP�dPe#�Z8GdQdR�dRe#�Z9GdSdT�dTe#�Z:GdUdV�dVe#�Z;GdWdX�dXe�Z<GdYdZ�dZe#�Z=Gd[d\�d\e#�Z>dS)]�Nzrhn-client-toolsT)Zfallback�ugettext)�dist)�ustr)�config)�
up2dateLog)�getPlatform�)�YumBaseError)�Errorc@s$eZdZdd�Zdd�Zdd�ZdS)�PmBaseErrorcCs
||_dS)N)�value)�self�errmsg�r�#/usr/lib/python3.6/up2dateErrors.py�__init__.szPmBaseError.__init__cCsttd�|jj|f��dS)Nzclass %s has no attribute '%s')�AttributeError�_�	__class__�__name__)r
�namerrr�__getattr__0szPmBaseError.__getattr__cCs"|dkr||jd<n
||j|<dS)Nrr)rr)�__dict__)r
rrrrr�__setattr__2szPmBaseError.__setattr__N)r�
__module__�__qualname__rrrrrrrr-src@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)r
zbase class for errors�cCs2t|�}tj||�d|j||_tj�|_dS)Nzrhn-plugin: )rrr�premsgrrZinitLog�log)r
rrrrr<szError.__init__cCs|jj|j�|jS)N)rZlog_mer)r
rrr�__repr__BszError.__repr__cCsT|dkr|jSttd�r$tj||�S||jkr8|j|Sttd�|jj|f��dS)zG Spacewalk backend still use errmsg, let have errmsg as alias to value rrzclass %s has no attribute '%s'N)	r�hasattrrrrrrrr)r
rrrrrFs


zError.__getattr__cCs<|dkr||jd<n$ttd�r.tj|||�n
||j|<dS)zG Spacewalk backend still use errmsg, let have errmsg as alias to value rrrN)rr rr)r
rrrrrrTs

zError.__setattr__N)	rrr�__doc__rrrrrrrrrr
9sr
c@seZdZdS)�DebAndSuseRepoErrorN)rrrrrrrr"_sr")�	RepoErrorc@seZdZdZed�ZdS)�RpmErrorz$rpm itself raised an error conditionzRPM error.  The message was:
N)rrrr!rrrrrrr$ksr$c@seZdZdS)�RhnServerExceptionN)rrrrrrrr%osr%c@seZdZdZed�ZdS)�
PasswordErrorz@Raise when the server responds with that a password is incorrectz!Password error. The message was:
N)rrrr!rrrrrrr&rsr&c@s"eZdZdZed�Zddd�ZdS)�DependencyErrorz7Raise when a rpm transaction set has a dependency errorz'RPM dependency error. The message was:
NcCstj||�||_dS)N)r
r�deps)r
�msgr(rrrryszDependencyError.__init__)N)rrrr!rrrrrrrr'vsr'c@seZdZdZed�ZdS)�CommunicationErrorzDIndicates a problem doing xml-rpc http communication with the serverz2Error communicating with server. The message was:
N)rrrr!rrrrrrr*�sr*c@seZdZdZed�ZdS)�FileNotFoundErrorzR
    Raise when a package or header that is requested returns
    a 404 error codezFile Not Found: 
N)rrrr!rrrrrrr+�sr+c@seZdZdZed�ZdS)�
DelayErrorzO
    Raise when the expected response from a xml-rpc call
    exceeds a timeoutz+Delay error from server.  The message was:
N)rrrr!rrrrrrr,�sr,c@s eZdZdZdd�Zdd�ZdS)�RpmRemoveErrorzP
    Raise when we can't remove a package for some reason
    (failed deps, etc)cCs`tj|d�||_x@|jj�D]2}t|j|�|j|<|jd||j|f|_qW|j|_dS)Nrz%s failed because of %s
)r
r�args�keysrr�data)r
r.�keyrrrr�szRpmRemoveError.__init__cCs|jS)N)r)r
rrrr�szRpmRemoveError.__repr__N)rrrr!rrrrrrr-�sr-c@seZdZdd�Zdd�ZdS)�
NoLogErrorcCst|�}|j||_dS)N)rrr)r
r)rrrr�szNoLogError.__init__cCs|jS)N)r)r
rrrr�szNoLogError.__repr__N)rrrrrrrrrr2�sr2c@seZdZdS)�
AbuseErrorN)rrrrrrrr3�sr3c@seZdZdS)�AuthenticationTicketErrorN)rrrrrrrr4�sr4c@seZdZdS)�AuthenticationErrorN)rrrrrrrr5�sr5c@seZdZdZed�ZdS)�ValidationErrorz1indicates an error during server input validationz!Error validating data at server:
N)rrrr!rrrrrrr6�sr6c@seZdZdS)�InvalidRegistrationNumberErrorN)rrrrrrrr7�sr7c@s$eZdZdd�Zdd�Zdd�ZdS)�RegistrationDeniedErrorcCstj||j��dS)N)r%r�changeExplanation)r
rrrr�sz RegistrationDeniedError.__init__cCs|jS)N)r)r
rrrr�sz RegistrationDeniedError.__repr__cCstd�S)Nz�
Red Hat Network Classic is not supported.
To register with Red Hat Subscription Management please run:

    subscription-manager register --auto-attach

Get more information at access.redhat.com/knowledge
    )r)r
rrrr9�sz)RegistrationDeniedError.changeExplanationN)rrrrrr9rrrrr8�sr8c@seZdZdZed�ZdS)�InvalidProductRegistrationErrorz1indicates an error during server input validationz"The installation number is invalidN)rrrr!rrrrrrr:�sr:c@seZdZed�ZdS)�OemInfoFileErrorz)Error parsing the oemInfo file at field:
N)rrrrrrrrrr;�sr;c@seZdZdZdS)�NoBaseChannelErrorz/No valid base channel was found for this systemN)rrrr!rrrrr<�sr<c@seZdZdS)�UnknownMethodExceptionN)rrrrrrrr=�sr=c@seZdZdS)�RhnUuidUniquenessErrorN)rrrrrrrr>�sr>c@seZdZddd�Zdd�ZdS)�ServerCapabilityErrorNcCs tj||�g|_|r||_dS)N)r
r�	errorlist)r
r)r@rrrr�szServerCapabilityError.__init__cCs|jS)N)r)r
rrrr�szServerCapabilityError.__repr__)N)rrrrrrrrrr?�s
r?c@seZdZdS)�NoChannelsErrorN)rrrrrrrrA�srAc@seZdZdZed�ZdS)�NetworkErrorzD some generic network error occurred, e.g. connection reset by peer zNetwork error: N)rrrr!rrrrrrrB�srBc@seZdZdd�ZejZdS)�SSLCertificateVerifyFailedErrorcCsftj�}|d}t|d�}|j�}|j�tjjtjj|�}|j	�rVt
j|d|�nt
j|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)r
Z
up2dateConfigZcertFile�fZbufZtempCertrrrr�s

z(SSLCertificateVerifyFailedError.__init__N)rrrrr
rrrrrrC�srCc@seZdZdS)�SSLCertificateFileNotFoundN)rrrrrrrrJ�srJc@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.

    N)rrrr!rrrrrKsrKc@seZdZdS)�NotEntitlingErrorN)rrrrrrrrLsrLc@seZdZdS)�InvalidProtocolErrorN)rrrrrrrrMsrMc@seZdZdS)�UnableToCreateUserN)rrrrrrrrNsrNc@seZdZdS)�ActivationKeyUsageLimitErrorN)rrrrrrrrOsrOc@seZdZdS)�LoginMinLengthErrorN)rrrrrrrrPsrPc@seZdZdS)�PasswordMinLengthErrorN)rrrrrrrrQsrQc@seZdZdS)�PasswordMaxLengthErrorN)rrrrrrrrR"srRc@s$eZdZdd�Zdd�Zdd�ZdS)�InsuffMgmntEntsErrorcCstj||j|��dS)N)r%rr9)r
r)rrrr'szInsuffMgmntEntsError.__init__cCs|jS)N)r)r
rrrr*szInsuffMgmntEntsError.__repr__cCs.td�}d}|j|�t|�}|d|�|S)Na"
    Your organization does not have enough Management entitlements to register this
    system to Red Hat Satellite. 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 Red Hat Network Classic and visiting
    the 'Subscription Management' page in the 'Your RHN' section of RHN.

    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)r
r)ZnewExplnZterm�locrrrr9-s
z&InsuffMgmntEntsError.changeExplanationN)rrrrrr9rrrrrS&srSc@seZdZdS)�NoSystemIdErrorN)rrrrrrrrW>srWc@seZdZdZdS)�InvalidRedirectionErrorz7 Raise when redirect requests could'nt return a packageN)rrrr!rrrrrXAsrX)?�gettextZtranslation�tr rrrH�platformrZrhn.i18nrZup2date_clientrrZup2date_client.pkgplatformr�sys�pathZ
yum.Errorsr	r�ImportErrorZdnf.exceptionsr
�	Exceptionr"r#r$r%r&r'r*r+r,r-r2r3r4r5r6r7r8r:r;r<r=r>r?rArBrCrJrKrLrMrNrOrPrQrRrSrWrXrrrr�<module>s�
&