mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
very common exceptions
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user