diff options
author | Greg Ward <gward@python.net> | 1999-08-14 23:43:45 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 1999-08-14 23:43:45 (GMT) |
commit | 8c66b697c14d3bbb5234cc97ed5ef426aed75655 (patch) | |
tree | 92b4a009eb3233a78e043b47e65a45cce349929a | |
parent | e27db5a3938b64a1e72c853285aa02c8c60c45d2 (diff) | |
download | cpython-8c66b697c14d3bbb5234cc97ed5ef426aed75655.zip cpython-8c66b697c14d3bbb5234cc97ed5ef426aed75655.tar.gz cpython-8c66b697c14d3bbb5234cc97ed5ef426aed75655.tar.bz2 |
Added DistutilsExecError, DistutilsValueError.
-rw-r--r-- | Lib/distutils/errors.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Lib/distutils/errors.py b/Lib/distutils/errors.py index f5ef385..17d1abc 100644 --- a/Lib/distutils/errors.py +++ b/Lib/distutils/errors.py @@ -52,12 +52,22 @@ if type (RuntimeError) is types.ClassType: class DistutilsOptionError (DistutilsError): pass + # DistutilsValueError is raised anytime an option value (presumably + # provided by setup.py) is invalid. + class DistutilsValueError (DistutilsError): + pass + # DistutilsPlatformError is raised when we find that we don't # know how to do something on the current platform (but we do # know how to do it on some platform). class DistutilsPlatformError (DistutilsError): pass + # DistutilsExecError is raised if there are any problems executing + # an external program + class DistutilsExecError (DistutilsError): + pass + # String-based exceptions else: DistutilsError = 'DistutilsError' @@ -67,6 +77,8 @@ else: DistutilsArgError = 'DistutilsArgError' DistutilsFileError = 'DistutilsFileError' DistutilsOptionError = 'DistutilsOptionError' + DistutilsValueError = 'DistutilsValueError' DistutilsPlatformError = 'DistutilsPlatformError' - + DistutilsExecError = 'DistutilsExecError' + del types |