very common exceptions

This commit is contained in:
Devaev Maxim
2019-12-09 02:26:48 +03:00
parent dd52a85cf6
commit 3048fc7923
7 changed files with 52 additions and 21 deletions

View File

@@ -24,6 +24,9 @@ from typing import Dict
from typing import AsyncGenerator
from typing import Type
from ...errors import OperationError
from ...errors import IsBusyError
from .. import BasePlugin
from .. import get_plugin_class
@@ -33,11 +36,11 @@ class AtxError(Exception):
pass
class AtxOperationError(AtxError):
class AtxOperationError(OperationError, AtxError):
pass
class AtxIsBusyError(AtxOperationError):
class AtxIsBusyError(IsBusyError, AtxError):
def __init__(self) -> None:
super().__init__("Performing another ATX operation, please try again later")