diff options
-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 |