summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/asyncio/exc.py
blob: 6137bf6df6142cdccbb8e51370c85aae2325e468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from ... import exc


class AsyncMethodRequired(exc.InvalidRequestError):
    """an API can't be used because its result would not be
    compatible with async"""


class AsyncContextNotStarted(exc.InvalidRequestError):
    """a startable context manager has not been started."""


class AsyncContextAlreadyStarted(exc.InvalidRequestError):
    """a startable context manager is already started."""