mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +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):
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue