codekingpro/portable-devtools
114k
1# ext/asyncio/exc.py
2# Copyright (C) 2020-2024 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: https://www.opensource.org/licenses/mit-license.php
7
8from ... import exc
9
10
11class AsyncMethodRequired(exc.InvalidRequestError):
12 """an API can't be used because its result would not be
13 compatible with async"""
14
15
16class AsyncContextNotStarted(exc.InvalidRequestError):
17 """a startable context manager has not been started."""
18
19
20class AsyncContextAlreadyStarted(exc.InvalidRequestError):
21 """a startable context manager is already started."""
22 