1. thomie
  2. pypy


Michael Hudson-Doyle  committed 2cb8ecf

add 'PyPyError'

  • Participants
  • Parent commits 2375656
  • Branches default

Comments (0)

Files changed (1)

File pypy/interpreter/baseobjspace.py

View file
  • Ignore whitespace
 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.