asyncio-taskpool/src/asyncio_taskpool/exceptions.py

31 lines
358 B
Python
Raw Normal View History

class PoolException(Exception):
pass
class PoolIsClosed(PoolException):
pass
class TaskEnded(PoolException):
pass
class AlreadyCancelled(TaskEnded):
pass
2022-02-06 15:00:47 +01:00
class AlreadyEnded(TaskEnded):
pass
class InvalidTaskID(PoolException):
pass
class PoolStillOpen(PoolException):
pass
class NotCoroutine(PoolException):
pass