Changeset 391 for python/trunk/Lib/distutils/errors.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/distutils/errors.py
r2 r391 9 9 symbols whose names start with "Distutils" and end with "Error".""" 10 10 11 # This module should be kept compatible with Python 2.1. 11 __revision__ = "$Id$" 12 12 13 __revision__ = "$Id: errors.py 77376 2010-01-08 23:27:23Z tarek.ziade $" 13 class DistutilsError(Exception): 14 """The root of all Distutils evil.""" 14 15 15 class DistutilsError (Exception): 16 """The root of all Distutils evil.""" 17 pass 18 19 class DistutilsModuleError (DistutilsError): 16 class DistutilsModuleError(DistutilsError): 20 17 """Unable to load an expected module, or to find an expected class 21 18 within some module (in particular, command modules and classes).""" 22 pass23 19 24 class DistutilsClassError 20 class DistutilsClassError(DistutilsError): 25 21 """Some command class (or possibly distribution class, if anyone 26 22 feels a need to subclass Distribution) is found not to be holding 27 23 up its end of the bargain, ie. implementing some part of the 28 24 "command "interface.""" 29 pass30 25 31 class DistutilsGetoptError 26 class DistutilsGetoptError(DistutilsError): 32 27 """The option table provided to 'fancy_getopt()' is bogus.""" 33 pass34 28 35 class DistutilsArgError 29 class DistutilsArgError(DistutilsError): 36 30 """Raised by fancy_getopt in response to getopt.error -- ie. an 37 31 error in the command line usage.""" 38 pass39 32 40 class DistutilsFileError 33 class DistutilsFileError(DistutilsError): 41 34 """Any problems in the filesystem: expected file not found, etc. 42 35 Typically this is for problems that we detect before IOError or 43 36 OSError could be raised.""" 44 pass45 37 46 class DistutilsOptionError 38 class DistutilsOptionError(DistutilsError): 47 39 """Syntactic/semantic errors in command options, such as use of 48 40 mutually conflicting options, or inconsistent options, … … 51 43 files, or what-have-you -- but if we *know* something originated in 52 44 the setup script, we'll raise DistutilsSetupError instead.""" 53 pass54 45 55 class DistutilsSetupError 46 class DistutilsSetupError(DistutilsError): 56 47 """For errors that can be definitely blamed on the setup script, 57 48 such as invalid keyword arguments to 'setup()'.""" 58 pass59 49 60 class DistutilsPlatformError 50 class DistutilsPlatformError(DistutilsError): 61 51 """We don't know how to do something on the current platform (but 62 52 we do know how to do it on some platform) -- eg. trying to compile 63 53 C files on a platform not supported by a CCompiler subclass.""" 64 pass65 54 66 class DistutilsExecError 55 class DistutilsExecError(DistutilsError): 67 56 """Any problems executing an external program (such as the C 68 57 compiler, when compiling C files).""" 69 pass70 58 71 class DistutilsInternalError 59 class DistutilsInternalError(DistutilsError): 72 60 """Internal inconsistencies or impossibilities (obviously, this 73 61 should never be seen if the code is working!).""" 74 pass75 62 76 class DistutilsTemplateError 63 class DistutilsTemplateError(DistutilsError): 77 64 """Syntax error in a file list template.""" 78 65 … … 81 68 82 69 # Exception classes used by the CCompiler implementation classes 83 class CCompilerError 70 class CCompilerError(Exception): 84 71 """Some compile/link operation failed.""" 85 72 86 class PreprocessError 73 class PreprocessError(CCompilerError): 87 74 """Failure to preprocess one or more C/C++ files.""" 88 75 89 class CompileError 76 class CompileError(CCompilerError): 90 77 """Failure to compile one or more C/C++ source files.""" 91 78 92 class LibError 79 class LibError(CCompilerError): 93 80 """Failure to create a static library from one or more C/C++ object 94 81 files.""" 95 82 96 class LinkError 83 class LinkError(CCompilerError): 97 84 """Failure to link one or more C/C++ object files into an executable 98 85 or shared library file.""" 99 86 100 class UnknownFileError 87 class UnknownFileError(CCompilerError): 101 88 """Attempt to process an unknown file type."""
Note:
See TracChangeset
for help on using the changeset viewer.