1 """distutils.errors
2
3 Provides exceptions used by the Distutils modules. Note that Distutils
4 modules may raise standard exceptions; in particular, SystemExit is
5 usually raised for errors that are obviously the end-user's fault
6 (eg. bad command-line arguments).
7
8 This module is safe to use in "from ... import *" mode; it only exports
9 symbols whose names start with "Distutils" and end with "Error"."""
10
11 class ESC[4;38;5;81mDistutilsError (ESC[4;38;5;149mException):
12 """The root of all Distutils evil."""
13 pass
14
15 class ESC[4;38;5;81mDistutilsModuleError (ESC[4;38;5;149mDistutilsError):
16 """Unable to load an expected module, or to find an expected class
17 within some module (in particular, command modules and classes)."""
18 pass
19
20 class ESC[4;38;5;81mDistutilsFileError (ESC[4;38;5;149mDistutilsError):
21 """Any problems in the filesystem: expected file not found, etc.
22 Typically this is for problems that we detect before OSError
23 could be raised."""
24 pass
25
26 class ESC[4;38;5;81mDistutilsPlatformError (ESC[4;38;5;149mDistutilsError):
27 """We don't know how to do something on the current platform (but
28 we do know how to do it on some platform) -- eg. trying to compile
29 C files on a platform not supported by a CCompiler subclass."""
30 pass
31
32 class ESC[4;38;5;81mDistutilsExecError (ESC[4;38;5;149mDistutilsError):
33 """Any problems executing an external program (such as the C
34 compiler, when compiling C files)."""
35 pass
36
37 # Exception classes used by the CCompiler implementation classes
38 class ESC[4;38;5;81mCCompilerError (ESC[4;38;5;149mException):
39 """Some compile/link operation failed."""
40
41 class ESC[4;38;5;81mPreprocessError (ESC[4;38;5;149mCCompilerError):
42 """Failure to preprocess one or more C/C++ files."""
43
44 class ESC[4;38;5;81mCompileError (ESC[4;38;5;149mCCompilerError):
45 """Failure to compile one or more C/C++ source files."""
46
47 class ESC[4;38;5;81mUnknownFileError (ESC[4;38;5;149mCCompilerError):
48 """Attempt to process an unknown file type."""