$39 GRAYBYTE WORDPRESS FILE MANAGER $89

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos//cl_wpos_exceptions.py
# coding=utf-8
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2020 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

from __future__ import absolute_import
from typing import Dict, Optional

from clcommon.lib.cledition import is_cl_solo_edition

from clwpos import gettext as _


class WposError(Exception):
    def __init__(self,
                 message: str = '',
                 context: Optional[Dict] = None,
                 warning: str = None,
                 details: Optional[str] = None):
        super().__init__()
        self.context = context if context else dict()
        self.warning = warning
        self.message = message
        self.details = details

    def __str__(self):
        return self.message


class WpCliCommandError(WposError):
    pass


class WPOSLicenseMissing(WposError):
    """WordPress Licence Exception
    """
    SHARED_DOCS_URL = 'https://docs.cloudlinux.com/cloudlinux_installation/#activation'
    SOLO_DOCS_URL = 'https://docs.solo.cloudlinux.com/activation/'

    def __init__(self):
        super(WPOSLicenseMissing, self).__init__(
            message=_("CloudLinux license isn't valid. "
                      "Follow the (%(license_docs_url)s) guide "
                      "and activate your CloudLinux instance."),
            context=dict(
                license_docs_url=self.SOLO_DOCS_URL
                # TODO: [unification] doc link is really different for solo and shared
                if is_cl_solo_edition(skip_jwt_check=True)
                else self.SHARED_DOCS_URL
            )
        )


class WpCliUnsupportedException(WposError):
    """
    Exception when wp-cli could not be run for
    some reasons
    """
    pass


class WrongWpPathException(WposError):
    """Exception when wp-path is incorrect"""
    pass


class ModuleIsAlreadyDisabledException(WposError):
    """Exception when module is disabled second time"""
    pass


class WpUserMissing(WposError):
    """
    Happens when we cannot find user in /etc/passwd by name
    """
    def __init__(self, username):
        super(WpUserMissing, self).__init__(
            message=_("User account '%(username)s' is not found in system. "
                      "Check '/etc/passwd' and make sure that it really exists."),
            context={"username}": username})


class WpNotExists(WposError):
    """
    Happens when passed wp instance does not exist on system
    """
    def __init__(self, wp_path):
        super(WpNotExists, self).__init__(
            message=_('The %(path)s path to WordPress does not exist.'),
            context=dict(path=wp_path)
        )


class WpConfigWriteFailed(WposError):
    """
    Happens when we are unable to write wp-config.php file
    """
    def __init__(self, wp_config_path, error):
        super(WpConfigWriteFailed, self).__init__(
            message=_("Unable to update the %(file)s config file. "
                      "Error details from the operation system are available below."),
            context={"file": wp_config_path},
            details=str(error)
        )


class WposDaemonLockError(WposError):
    """Exception when impossibly to acqure lock"""
    pass


class PhpBrokenException(WposError):
    """Happens when binary file is boken (rpm -V fails)"""
    def __init__(self, php_bin_path: str, stderr: str):
        super(PhpBrokenException, self).__init__(
            message=_("PHP binary %(php_bin)s is broken."),
            details=_('The operating system reported error "%(system_error)s".'),
            context={"php_bin": php_bin_path, 'system_error': stderr}
        )

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 3.08 AM
root / root
0755
__pycache__
--
16 Dec 2025 9.38 PM
root / root
0755
bin
--
16 Dec 2025 9.31 PM
root / root
0755
cli_versions
--
16 Dec 2025 9.31 PM
root / root
0755
feature_suites
--
16 Dec 2025 9.31 PM
root / root
0755
hooks
--
16 Dec 2025 9.31 PM
root / root
0755
migrations
--
16 Dec 2025 9.31 PM
root / root
0755
object_cache
--
16 Dec 2025 9.31 PM
root / root
0755
optimization_features
--
16 Dec 2025 9.31 PM
root / root
0755
php
--
16 Dec 2025 9.31 PM
root / root
0755
user
--
16 Dec 2025 9.31 PM
root / root
0755
__init__.py
0.906 KB
29 Sep 2025 8.34 PM
root / root
0644
billing.py
6.242 KB
29 Sep 2025 8.34 PM
root / root
0644
cl_wpos_exceptions.py
3.591 KB
29 Sep 2025 8.34 PM
root / root
0644
constants.py
5.562 KB
29 Sep 2025 8.34 PM
root / root
0644
create_user_uid_dirs.py
0.736 KB
29 Sep 2025 8.34 PM
root / root
0644
cron.py
2.138 KB
29 Sep 2025 8.34 PM
root / root
0644
daemon.py
37.119 KB
29 Sep 2025 8.34 PM
root / root
0644
daemon_base.py
2.844 KB
29 Sep 2025 8.34 PM
root / root
0644
daemon_config.py
0.606 KB
29 Sep 2025 8.34 PM
root / root
0644
daemon_redis_lib.py
11.932 KB
29 Sep 2025 8.34 PM
root / root
0644
daemon_subscription_handler.py
6.438 KB
29 Sep 2025 8.34 PM
root / root
0644
data_collector_utils.py
9.418 KB
29 Sep 2025 8.34 PM
root / root
0644
logsetup.py
4.045 KB
29 Sep 2025 8.34 PM
root / root
0644
papi.py
9.867 KB
29 Sep 2025 8.34 PM
root / root
0644
parse.py
2.104 KB
29 Sep 2025 8.34 PM
root / root
0644
redis_configuration_pid_file_cleaner.py
1.013 KB
29 Sep 2025 8.34 PM
root / root
0755
report_generator.py
21.176 KB
29 Sep 2025 8.34 PM
root / root
0644
scoped_cache.py
1.34 KB
29 Sep 2025 8.34 PM
root / root
0644
socket_utils.py
4.029 KB
29 Sep 2025 8.34 PM
root / root
0644
stats.py
12.016 KB
29 Sep 2025 8.34 PM
root / root
0644
utils.py
54.336 KB
29 Sep 2025 8.34 PM
root / root
0644
whmcs_utils.py
9.361 KB
29 Sep 2025 8.34 PM
root / root
0644
wp_config.py
0.708 KB
29 Sep 2025 8.34 PM
root / root
0644
wp_utils.py
16.33 KB
29 Sep 2025 8.34 PM
root / root
0644
wpos_admin.py
67.14 KB
29 Sep 2025 8.34 PM
root / root
0644
wpos_hooks.py
4.854 KB
29 Sep 2025 8.34 PM
root / root
0755
wpos_req_scanner.py
4.38 KB
29 Sep 2025 8.34 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF