Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/exc.py: 80%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

5 statements  

1# ext/asyncio/exc.py 

2# Copyright (C) 2020-2025 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."""