Commits

Michael Hudson-Doyle  committed 2cb8ecf

add 'PyPyError'

  • Participants
  • Parent commits 2375656

Comments (0)

Files changed (1)

File pypy/interpreter/baseobjspace.py

 from executioncontext import ExecutionContext, OperationError, NoValue
 import pyframe
 
-__all__ = ['ObjSpace', 'OperationError', 'NoValue']
+__all__ = ['ObjSpace', 'OperationError', 'NoValue', 'PyPyError']
 
+class PyPyError(Exception):
+    "Raise this when you encounter an exceptional situation in PyPy itself."
+    pass
 
 class ObjSpace:
     """Base class for the interpreter-level implementations of object spaces.