summaryrefslogtreecommitdiff
path: root/errors.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>1999-08-14 23:43:45 +0000
committerGreg Ward <gward@python.net>1999-08-14 23:43:45 +0000
commit6c5612c1cbdcc3fe4762d0ef80948a37a7cbdc3b (patch)
treead0dc331c63be30a190983a44392d0a405f37790 /errors.py
parent8c9d03208b4de8de842b039922fad2373ea6bf0f (diff)
downloadpython-setuptools-git-6c5612c1cbdcc3fe4762d0ef80948a37a7cbdc3b.tar.gz
Added DistutilsExecError, DistutilsValueError.
Diffstat (limited to 'errors.py')
-rw-r--r--errors.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/errors.py b/errors.py
index f5ef3851..17d1abc7 100644
--- a/errors.py
+++ b/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