jg ddlmZddlmZddlmZddlmZdZdZdZdZ d Z d Z d Z d Z Gd deZGddeZGddeZGddeZGddeZGddeZGddeZdS))print_function)division)absolute_import)FormattedExceptionenableddisabled not_installed installingremovingcache_updatingstartedstoppedceZdZdZdS)BaseSelectorErrorz2Top level error class for admin's part of selectorN)__name__ __module__ __qualname____doc__U/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/baseclselect/__init__.pyrrs<<Drrc"eZdZdZfdZxZS)AcquireInterpreterLockErrorz;Error raised when we are unable to lock interpreter versioncbtt|dd|iddS)NzdUnable to lock specified interpreter version %(version)s. Probably it's not installed at this momentversionmessagecontext)superr__init__)selfr __class__s rr z$AcquireInterpreterLockError.__init__sK )40099+7 ; ;      rrrrrr __classcell__r"s@rrrs>EE         rrc$eZdZdZdfd ZxZS)AcquireApplicationLockErrorz3Error raised when we are unable to lock applicationNcd}|r|d|z }tt||d|iddS)Nz#Can't acquire lock for app: %(app)sz Reason is: {}appr)formatrr'r )r!app_rootreasonrr"s rr z$AcquireApplicationLockError.__init__+sm7  7 '..v66 6G )40099x; ;      r)Nr#r%s@rr'r')sC==           rr'c"eZdZdZfdZxZS)MissingVirtualenvErrorz0Error raised when virtualenv directory is absentcbtt|dd|iddS)Nz_No such application or it's broken. Unable to find app venv folder by this path: '%(app_venv)s'app_venvr)rr.r )r!r0r"s rr zMissingVirtualenvError.__init__9sL $d++44NH 6 6      rr#r%s@rr.r.7s>::         rr.c"eZdZdZfdZxZS)MissingAppRootErrorz6Error raised when application root directory is absentcbtt|dd|iddS)Nz_No such application or it's broken. Unable to find app-root folder by this path: '%(app_root)s'r+r)rr2r )r!r+r"s rr zMissingAppRootError.__init__FsL !4((11NH 3 3      rr#r%s@rr2r2Ds>@@         rr2c"eZdZdZfdZxZS)AbsentFileErrorz*Error raised when some file does not existcbtt|dd|iddS)NzFile %(file)s is absent.filer)rr5r )r!filepathr"s rr zAbsentFileError.__init__SsD ot$$--2* , ,     rr#r%s@rr5r5Qs>44         rr5ceZdZfdZxZS)UnsupportedSelectorErrorcbtt|dd|iddS)Nz5Unsupported interpreter was passed: "%(interpreter)s" interpreterr)rr:r )r!r<r"s rr z!UnsupportedSelectorError.__init__[sE &--66O& 4 6 6     r)rrrr r$r%s@rr:r:Zs8         rr:N) __future__rrrclcommonrENABLED_STATUSDISABLED_STATUSNOT_INSTALLED_STATUSINSTALLING_STATUSREMOVING_STATUSCACHE_UPDATING_YUM_STATUSAPP_STARTED_CONSTAPP_STOPPED_CONSTrrr'r.r2r5r:rrrrGs&%%%%%&&&&&&''''''& -     *        "3          "3          .          +         '        0     r