[pypy-svn] r49013 - pypy/dist/pypy/lib
tismer at codespeak.net
tismer at codespeak.net
Sat Nov 24 03:05:54 CET 2007
Author: tismer
Date: Sat Nov 24 03:05:54 2007
New Revision: 49013
Modified:
pypy/dist/pypy/lib/_exceptions.py
Log:
omitted something that was needed, too
Modified: pypy/dist/pypy/lib/_exceptions.py
==============================================================================
--- pypy/dist/pypy/lib/_exceptions.py (original)
+++ pypy/dist/pypy/lib/_exceptions.py Sat Nov 24 03:05:54 2007
@@ -210,6 +210,12 @@
class OSError(EnvironmentError):
"""OS system call failed."""
+try:
+ WindowsError
+ class WindowsError(OSError):
+ """MS-Windows OS system call failed."""
+except NameError:pass
+
class DeprecationWarning(Warning):
"""Base class for warnings about deprecated features."""
@@ -438,3 +444,18 @@
self.encoding, self.start, self.end - 1, self.reason)
+
+#-- Logic object space specific stuff
+#XXX conditionalize me on '-o logic'
+
+class LogicError(Exception): pass
+
+class UnificationError(LogicError): pass
+class RebindingError(UnificationError): pass
+class FutureBindingError(LogicError): pass
+
+class AllBlockedError(LogicError): pass
+
+# constraints
+
+class ConsistencyError(LogicError): pass
More information about the Pypy-commit
mailing list