+++ /dev/null
-"""distutils.errors\r
-\r
-Provides exceptions used by the Distutils modules. Note that Distutils\r
-modules may raise standard exceptions; in particular, SystemExit is\r
-usually raised for errors that are obviously the end-user's fault\r
-(eg. bad command-line arguments).\r
-\r
-This module is safe to use in "from ... import *" mode; it only exports\r
-symbols whose names start with "Distutils" and end with "Error"."""\r
-\r
-__revision__ = "$Id$"\r
-\r
-class DistutilsError(Exception):\r
- """The root of all Distutils evil."""\r
-\r
-class DistutilsModuleError(DistutilsError):\r
- """Unable to load an expected module, or to find an expected class\r
- within some module (in particular, command modules and classes)."""\r
-\r
-class DistutilsClassError(DistutilsError):\r
- """Some command class (or possibly distribution class, if anyone\r
- feels a need to subclass Distribution) is found not to be holding\r
- up its end of the bargain, ie. implementing some part of the\r
- "command "interface."""\r
-\r
-class DistutilsGetoptError(DistutilsError):\r
- """The option table provided to 'fancy_getopt()' is bogus."""\r
-\r
-class DistutilsArgError(DistutilsError):\r
- """Raised by fancy_getopt in response to getopt.error -- ie. an\r
- error in the command line usage."""\r
-\r
-class DistutilsFileError(DistutilsError):\r
- """Any problems in the filesystem: expected file not found, etc.\r
- Typically this is for problems that we detect before IOError or\r
- OSError could be raised."""\r
-\r
-class DistutilsOptionError(DistutilsError):\r
- """Syntactic/semantic errors in command options, such as use of\r
- mutually conflicting options, or inconsistent options,\r
- badly-spelled values, etc. No distinction is made between option\r
- values originating in the setup script, the command line, config\r
- files, or what-have-you -- but if we *know* something originated in\r
- the setup script, we'll raise DistutilsSetupError instead."""\r
-\r
-class DistutilsSetupError(DistutilsError):\r
- """For errors that can be definitely blamed on the setup script,\r
- such as invalid keyword arguments to 'setup()'."""\r
-\r
-class DistutilsPlatformError(DistutilsError):\r
- """We don't know how to do something on the current platform (but\r
- we do know how to do it on some platform) -- eg. trying to compile\r
- C files on a platform not supported by a CCompiler subclass."""\r
-\r
-class DistutilsExecError(DistutilsError):\r
- """Any problems executing an external program (such as the C\r
- compiler, when compiling C files)."""\r
-\r
-class DistutilsInternalError(DistutilsError):\r
- """Internal inconsistencies or impossibilities (obviously, this\r
- should never be seen if the code is working!)."""\r
-\r
-class DistutilsTemplateError(DistutilsError):\r
- """Syntax error in a file list template."""\r
-\r
-class DistutilsByteCompileError(DistutilsError):\r
- """Byte compile error."""\r
-\r
-# Exception classes used by the CCompiler implementation classes\r
-class CCompilerError(Exception):\r
- """Some compile/link operation failed."""\r
-\r
-class PreprocessError(CCompilerError):\r
- """Failure to preprocess one or more C/C++ files."""\r
-\r
-class CompileError(CCompilerError):\r
- """Failure to compile one or more C/C++ source files."""\r
-\r
-class LibError(CCompilerError):\r
- """Failure to create a static library from one or more C/C++ object\r
- files."""\r
-\r
-class LinkError(CCompilerError):\r
- """Failure to link one or more C/C++ object files into an executable\r
- or shared library file."""\r
-\r
-class UnknownFileError(CCompilerError):\r
- """Attempt to process an unknown file type."""\r