3 0Q=jòã!@süddlZejddd�Zeedƒs(eje_ejZddlmZddlm Z ddl Z e j dd…e j dd…e _ ydd l m ZWnJek rÆydd lmZWn$ek rÀGd d „d eƒZYnXYnXGd d„deƒZGdd„deƒZyddl mZWnBek �r:yddlmZWnek �r4eZYnXYnXGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGd d!„d!eeƒZGd"d#„d#eƒZGd$d%„d%eeƒZGd&d'„d'eƒZGd(d)„d)eƒZ Gd*d+„d+eeƒZ!Gd,d-„d-eeƒZ"Gd.d/„d/eeƒZ#Gd0d1„d1eƒZ$Gd2d3„d3eeƒZ%Gd4d5„d5eƒZ&Gd6d7„d7eƒZ'Gd8d9„d9eƒZ(Gd:d;„d;eƒZ)Gdd?„d?eƒZ+Gd@dA„dAeƒZ,GdBdC„dCeƒZ-GdDdE„dEeƒZ.GdFdG„dGeƒZ/dS)HéNzrhn-client-toolsT)ZfallbackÚugettext)Úustr)Ú up2dateLogé)Ú 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 Únamer r r Ú __getattr__,szPmBaseError.__getattr__cCs"|dkr||jd<n ||j|<dS)Nr r )r r )Ú__dict__)r rr r r r Ú __setattr__.s zPmBaseError.__setattr__N)rÚ __module__Ú __qualname__rrrr r r r r)src@s4eZdZdZdZdd„Zdd„Zdd„Zd d „Zd S) rzbase class for errorsÚcCs2t|ƒ}tj||ƒd|j||_tjƒ|_dS)Nz rhn-plugin: )rrrÚpremsgr rZinitLogÚlog)r r r r r r8s zError.__init__cCs|jj|jƒ|jS)N)rZlog_mer )r r r r Ú__repr__>szError.__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 r rzclass %s has no attribute '%s'N) r Úhasattrrrrrrrr)r rr r r rBs    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 r r rN)rrrr)r rr r r r rPs   zError.__setattr__N) rrrÚ__doc__rrrrrr r r r r5s rc@s eZdZdS)ÚDebAndSuseRepoErrorN)rrrr r r r r[sr)Ú RepoErrorc@s eZdZdS)ÚRhnServerExceptionN)rrrr r r r r!gsr!c@seZdZdZedƒZdS)Ú PasswordErrorz@Raise when the server responds with that a password is incorrectz!Password error. The message was: N)rrrrrrr r r r r"jsr"c@seZdZdZedƒZdS)ÚCommunicationErrorzDIndicates a problem doing xml-rpc http communication with the serverz2Error communicating with server. The message was: N)rrrrrrr r r r r#osr#c@seZdZdZedƒZdS)ÚFileNotFoundErrorzR Raise when a package or header that is requested returns a 404 error codezFile Not Found: N)rrrrrrr r r r r$tsr$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)rrrrrrr r r r r%{sr%c@seZdZdd„Zdd„ZdS)Ú NoLogErrorcCst|ƒ}|j||_dS)N)rrr )r Úmsgr r r rƒszNoLogError.__init__cCs|jS)N)r )r r r r r‡szNoLogError.__repr__N)rrrrrr r r r r&‚sr&c@s eZdZdS)Ú AbuseErrorN)rrrr r r r r(Šsr(c@s eZdZdS)ÚAuthenticationTicketErrorN)rrrr r r r r)�sr)c@s eZdZdS)ÚAuthenticationErrorN)rrrr r r r r*�sr*c@seZdZdZedƒZdS)ÚValidationErrorz1indicates an error during server input validationz!Error validating data at server: N)rrrrrrr r r r r+“sr+c@s eZdZdS)ÚInvalidRegistrationNumberErrorN)rrrr r r r r,—sr,c@s$eZdZdd„Zdd„Zdd„ZdS)ÚRegistrationDeniedErrorcCstj||jƒƒdS)N)r!rÚchangeExplanation)r r r r r›sz RegistrationDeniedError.__init__cCs|jS)N)r )r r r r rž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 )r)r r r r r.¡sz)RegistrationDeniedError.changeExplanationN)rrrrrr.r r r r r-šsr-c@seZdZdZdS)ÚNoBaseChannelErrorz/No valid base channel was found for this systemN)rrrrr r r r r/«sr/c@s eZdZdS)ÚUnknownMethodExceptionN)rrrr r r r r0¯sr0c@s eZdZdS)ÚRhnUuidUniquenessErrorN)rrrr r r r r1²sr1c@seZdZdZedƒZdS)Ú NetworkErrorzD some generic network error occurred, e.g. connection reset by peer zNetwork error: N)rrrrrrr r r r r2µsr2c@seZdZdd„ZejZdS)ÚSSLCertificateVerifyFailedErrorcCstj|dƒdS)Nz(The SSL certificate failed verification.)r r)r r r r rºsz(SSLCertificateVerifyFailedError.__init__N)rrrrrrr r r r r3¹sr3c@s eZdZdS)ÚSSLCertificateFileNotFoundN)rrrr r r r r4¿sr4c@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)rrrrr r r r r5Ãs r5c@s eZdZdS)ÚNotEntitlingErrorN)rrrr r r r r6Ñsr6c@s eZdZdS)ÚUnableToCreateUserN)rrrr r r r r7Ôsr7c@s eZdZdS)ÚActivationKeyUsageLimitErrorN)rrrr r r r r8×sr8c@s eZdZdS)ÚLoginMinLengthErrorN)rrrr r r r r9Úsr9c@s eZdZdS)ÚPasswordMinLengthErrorN)rrrr r r r r:Ýsr:c@s eZdZdS)ÚPasswordMaxLengthErrorN)rrrr r r r r;àsr;c@s$eZdZdd„Zdd„Zdd„ZdS)ÚInsuffMgmntEntsErrorcCstj||j|ƒƒdS)N)r!rr.)r r'r r r råszInsuffMgmntEntsError.__init__cCs|jS)N)r )r r r r rèszInsuffMgmntEntsError.__repr__cCs.tdƒ}d}|j|ƒ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)r r'ZnewExplnZtermÚlocr r r r.ës  z&InsuffMgmntEntsError.changeExplanationN)rrrrrr.r r r r r<äsr<c@seZdZdZdS)ÚInvalidRedirectionErrorz7 Raise when redirect requests could'nt return a packageN)rrrrr r r r r@ûsr@)0ÚgettextZ translationÚtrrrZrhn.i18nrZup2date_clientrÚsysÚpathZ yum.ErrorsrrÚ ImportErrorZdnf.exceptionsrÚ Exceptionrr r!r"r#r$r%r&r(r)r*r+r,r-r/r0r1r2r3r4r5r6r7r8r9r:r;r<r@r r r r Úsf    &