summaryrefslogtreecommitdiffstats
path: root/Lib/exceptions.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-17 15:12:01 (GMT)
committerGuido van Rossum <guido@python.org>2000-02-17 15:12:01 (GMT)
commit1efac337556555399fbffffde4dc04709bc63aac (patch)
treeaba5cd6ff288294a90da5ca01d47b5ee7b006681 /Lib/exceptions.py
parent8006d316bcf10af9f3d22530ce88358370aec10b (diff)
downloadcpython-1efac337556555399fbffffde4dc04709bc63aac.zip
cpython-1efac337556555399fbffffde4dc04709bc63aac.tar.gz
cpython-1efac337556555399fbffffde4dc04709bc63aac.tar.bz2
Added WindowsError, for Mark Hammond's extensions.
Diffstat (limited to 'Lib/exceptions.py')
-rw-r--r--Lib/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/exceptions.py b/Lib/exceptions.py
index 56eed92..b785a7c 100644
--- a/Lib/exceptions.py
+++ b/Lib/exceptions.py
@@ -33,6 +33,8 @@ Exception(*)
| |
| +-- IOError
| +-- OSError(*)
+ | |
+ | +-- WindowsError(*)
|
+-- EOFError
+-- RuntimeError
@@ -139,6 +141,10 @@ class OSError(EnvironmentError):
"""OS system call failed."""
pass
+class WindowsError(OSError):
+ """MS-Windows OS system call failed."""
+ pass
+
class RuntimeError(StandardError):
"""Unspecified run-time error."""
pass