mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Added DistutilsExecError, DistutilsValueError.
This commit is contained in:
parent
e27db5a393
commit
8c66b697c1
1 changed files with 13 additions and 1 deletions
|
@ -52,12 +52,22 @@ if type (RuntimeError) is types.ClassType:
|
||||||
class DistutilsOptionError (DistutilsError):
|
class DistutilsOptionError (DistutilsError):
|
||||||
pass
|
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
|
# 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 something on the current platform (but we do
|
||||||
# know how to do it on some platform).
|
# know how to do it on some platform).
|
||||||
class DistutilsPlatformError (DistutilsError):
|
class DistutilsPlatformError (DistutilsError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# DistutilsExecError is raised if there are any problems executing
|
||||||
|
# an external program
|
||||||
|
class DistutilsExecError (DistutilsError):
|
||||||
|
pass
|
||||||
|
|
||||||
# String-based exceptions
|
# String-based exceptions
|
||||||
else:
|
else:
|
||||||
DistutilsError = 'DistutilsError'
|
DistutilsError = 'DistutilsError'
|
||||||
|
@ -67,6 +77,8 @@ else:
|
||||||
DistutilsArgError = 'DistutilsArgError'
|
DistutilsArgError = 'DistutilsArgError'
|
||||||
DistutilsFileError = 'DistutilsFileError'
|
DistutilsFileError = 'DistutilsFileError'
|
||||||
DistutilsOptionError = 'DistutilsOptionError'
|
DistutilsOptionError = 'DistutilsOptionError'
|
||||||
|
DistutilsValueError = 'DistutilsValueError'
|
||||||
DistutilsPlatformError = 'DistutilsPlatformError'
|
DistutilsPlatformError = 'DistutilsPlatformError'
|
||||||
|
DistutilsExecError = 'DistutilsExecError'
|
||||||
|
|
||||||
del types
|
del types
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue