2022-02-09 23:14:42 +01:00
|
|
|
__author__ = "Daniil Fajnberg"
|
|
|
|
__copyright__ = "Copyright © 2022 Daniil Fajnberg"
|
|
|
|
__license__ = """GNU LGPLv3.0
|
|
|
|
|
|
|
|
This file is part of asyncio-taskpool.
|
|
|
|
|
|
|
|
asyncio-taskpool is free software: you can redistribute it and/or modify it under the terms of
|
|
|
|
version 3.0 of the GNU Lesser General Public License as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
asyncio-taskpool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License along with asyncio-taskpool.
|
|
|
|
If not, see <https://www.gnu.org/licenses/>."""
|
|
|
|
|
|
|
|
__doc__ = """
|
|
|
|
Custom exception classes used in various modules.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2022-02-05 18:02:32 +01:00
|
|
|
class PoolException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-02-24 19:16:24 +01:00
|
|
|
class PoolIsClosed(PoolException):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-02-08 23:09:33 +01:00
|
|
|
class PoolIsLocked(PoolException):
|
2022-02-05 18:02:32 +01:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class TaskEnded(PoolException):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class AlreadyCancelled(TaskEnded):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-02-06 15:00:47 +01:00
|
|
|
class AlreadyEnded(TaskEnded):
|
2022-02-05 18:02:32 +01:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidTaskID(PoolException):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-02-24 19:16:24 +01:00
|
|
|
class InvalidGroupName(PoolException):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-02-08 23:09:33 +01:00
|
|
|
class PoolStillUnlocked(PoolException):
|
2022-02-05 18:02:32 +01:00
|
|
|
pass
|
2022-02-07 17:31:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
class NotCoroutine(PoolException):
|
|
|
|
pass
|
2022-02-12 22:51:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ServerException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class HelpRequested(ServerException):
|
|
|
|
pass
|
2022-03-13 15:44:53 +01:00
|
|
|
|
|
|
|
|
2022-03-14 19:16:28 +01:00
|
|
|
class ParserError(ServerException):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-03-13 15:44:53 +01:00
|
|
|
class CommandError(ServerException):
|
|
|
|
pass
|