You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
638B

  1. # ext/asyncio/exc.py
  2. # Copyright (C) 2020-2021 the SQLAlchemy authors and contributors
  3. # <see AUTHORS file>
  4. #
  5. # This module is part of SQLAlchemy and is released under
  6. # the MIT License: http://www.opensource.org/licenses/mit-license.php
  7. from ... import exc
  8. class AsyncMethodRequired(exc.InvalidRequestError):
  9. """an API can't be used because its result would not be
  10. compatible with async"""
  11. class AsyncContextNotStarted(exc.InvalidRequestError):
  12. """a startable context manager has not been started."""
  13. class AsyncContextAlreadyStarted(exc.InvalidRequestError):
  14. """a startable context manager is already started."""