ยปCore Development>Code coverage>Lib/distutils/errors.py

Python code coverage for Lib/distutils/errors.py

#countcontent
1n/a"""distutils.errors
2n/a
3n/aProvides exceptions used by the Distutils modules. Note that Distutils
4n/amodules may raise standard exceptions; in particular, SystemExit is
5n/ausually raised for errors that are obviously the end-user's fault
6n/a(eg. bad command-line arguments).
7n/a
8n/aThis module is safe to use in "from ... import *" mode; it only exports
9n/asymbols whose names start with "Distutils" and end with "Error"."""
10n/a
11n/aclass DistutilsError (Exception):
12n/a """The root of all Distutils evil."""
13n/a pass
14n/a
15n/aclass DistutilsModuleError (DistutilsError):
16n/a """Unable to load an expected module, or to find an expected class
17n/a within some module (in particular, command modules and classes)."""
18n/a pass
19n/a
20n/aclass DistutilsClassError (DistutilsError):
21n/a """Some command class (or possibly distribution class, if anyone
22n/a feels a need to subclass Distribution) is found not to be holding
23n/a up its end of the bargain, ie. implementing some part of the
24n/a "command "interface."""
25n/a pass
26n/a
27n/aclass DistutilsGetoptError (DistutilsError):
28n/a """The option table provided to 'fancy_getopt()' is bogus."""
29n/a pass
30n/a
31n/aclass DistutilsArgError (DistutilsError):
32n/a """Raised by fancy_getopt in response to getopt.error -- ie. an
33n/a error in the command line usage."""
34n/a pass
35n/a
36n/aclass DistutilsFileError (DistutilsError):
37n/a """Any problems in the filesystem: expected file not found, etc.
38n/a Typically this is for problems that we detect before OSError
39n/a could be raised."""
40n/a pass
41n/a
42n/aclass DistutilsOptionError (DistutilsError):
43n/a """Syntactic/semantic errors in command options, such as use of
44n/a mutually conflicting options, or inconsistent options,
45n/a badly-spelled values, etc. No distinction is made between option
46n/a values originating in the setup script, the command line, config
47n/a files, or what-have-you -- but if we *know* something originated in
48n/a the setup script, we'll raise DistutilsSetupError instead."""
49n/a pass
50n/a
51n/aclass DistutilsSetupError (DistutilsError):
52n/a """For errors that can be definitely blamed on the setup script,
53n/a such as invalid keyword arguments to 'setup()'."""
54n/a pass
55n/a
56n/aclass DistutilsPlatformError (DistutilsError):
57n/a """We don't know how to do something on the current platform (but
58n/a we do know how to do it on some platform) -- eg. trying to compile
59n/a C files on a platform not supported by a CCompiler subclass."""
60n/a pass
61n/a
62n/aclass DistutilsExecError (DistutilsError):
63n/a """Any problems executing an external program (such as the C
64n/a compiler, when compiling C files)."""
65n/a pass
66n/a
67n/aclass DistutilsInternalError (DistutilsError):
68n/a """Internal inconsistencies or impossibilities (obviously, this
69n/a should never be seen if the code is working!)."""
70n/a pass
71n/a
72n/aclass DistutilsTemplateError (DistutilsError):
73n/a """Syntax error in a file list template."""
74n/a
75n/aclass DistutilsByteCompileError(DistutilsError):
76n/a """Byte compile error."""
77n/a
78n/a# Exception classes used by the CCompiler implementation classes
79n/aclass CCompilerError (Exception):
80n/a """Some compile/link operation failed."""
81n/a
82n/aclass PreprocessError (CCompilerError):
83n/a """Failure to preprocess one or more C/C++ files."""
84n/a
85n/aclass CompileError (CCompilerError):
86n/a """Failure to compile one or more C/C++ source files."""
87n/a
88n/aclass LibError (CCompilerError):
89n/a """Failure to create a static library from one or more C/C++ object
90n/a files."""
91n/a
92n/aclass LinkError (CCompilerError):
93n/a """Failure to link one or more C/C++ object files into an executable
94n/a or shared library file."""
95n/a
96n/aclass UnknownFileError (CCompilerError):
97n/a """Attempt to process an unknown file type."""