PHP 8.2.30
Preview: errors.py Size: 3.02 KB
//opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/_distutils/errors.py

"""
Exceptions used by the Distutils modules.

Distutils modules may raise these or standard exceptions,
including :exc:`SystemExit`.
"""

# compiler exceptions aliased for compatibility
from .compilers.C.errors import CompileError as CompileError
from .compilers.C.errors import Error as _Error
from .compilers.C.errors import LibError as LibError
from .compilers.C.errors import LinkError as LinkError
from .compilers.C.errors import PreprocessError as PreprocessError
from .compilers.C.errors import UnknownFileType as _UnknownFileType

CCompilerError = _Error
UnknownFileError = _UnknownFileType


class DistutilsError(Exception):
    """The root of all Distutils evil."""

    pass


class DistutilsModuleError(DistutilsError):
    """Unable to load an expected module, or to find an expected class
    within some module (in particular, command modules and classes)."""

    pass


class DistutilsClassError(DistutilsError):
    """Some command class (or possibly distribution class, if anyone
    feels a need to subclass Distribution) is found not to be holding
    up its end of the bargain, ie. implementing some part of the
    "command "interface."""

    pass


class DistutilsGetoptError(DistutilsError):
    """The option table provided to 'fancy_getopt()' is bogus."""

    pass


class DistutilsArgError(DistutilsError):
    """Raised by fancy_getopt in response to getopt.error -- ie. an
    error in the command line usage."""

    pass


class DistutilsFileError(DistutilsError):
    """Any problems in the filesystem: expected file not found, etc.
    Typically this is for problems that we detect before OSError
    could be raised."""

    pass


class DistutilsOptionError(DistutilsError):
    """Syntactic/semantic errors in command options, such as use of
    mutually conflicting options, or inconsistent options,
    badly-spelled values, etc.  No distinction is made between option
    values originating in the setup script, the command line, config
    files, or what-have-you -- but if we *know* something originated in
    the setup script, we'll raise DistutilsSetupError instead."""

    pass


class DistutilsSetupError(DistutilsError):
    """For errors that can be definitely blamed on the setup script,
    such as invalid keyword arguments to 'setup()'."""

    pass


class DistutilsPlatformError(DistutilsError):
    """We don't know how to do something on the current platform (but
    we do know how to do it on some platform) -- eg. trying to compile
    C files on a platform not supported by a CCompiler subclass."""

    pass


class DistutilsExecError(DistutilsError):
    """Any problems executing an external program (such as the C
    compiler, when compiling C files)."""

    pass


class DistutilsInternalError(DistutilsError):
    """Internal inconsistencies or impossibilities (obviously, this
    should never be seen if the code is working!)."""

    pass


class DistutilsTemplateError(DistutilsError):
    """Syntax error in a file list template."""


class DistutilsByteCompileError(DistutilsError):
    """Byte compile error."""

Directory Contents

Dirs: 5 × Files: 28

Name Size Perms Modified Actions
command DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
compat DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
compilers DIR
- drwxr-xr-x 2026-01-20 13:01:47
Edit Download
tests DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:05:34
Edit Download
8.68 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
524 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
21.67 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
9.14 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
594 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
139 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
349 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
7.07 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
54.49 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.02 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
10.89 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
17.48 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
14.98 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
7.79 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.17 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.99 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
19.27 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
11.82 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
212 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
17.67 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
12.32 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
5.08 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
58 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
42 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
239 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.14 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
335 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
359 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).