mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
27 lines
584 B
Python
27 lines
584 B
Python
|
|
class IsSuperuserException(Exception):
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
class SkipPluginException(Exception):
|
||
|
|
def __init__(self, info: str, *args: object) -> None:
|
||
|
|
super().__init__(*args)
|
||
|
|
self.info = info
|
||
|
|
|
||
|
|
def __str__(self) -> str:
|
||
|
|
return self.info
|
||
|
|
|
||
|
|
def __repr__(self) -> str:
|
||
|
|
return self.info
|
||
|
|
|
||
|
|
|
||
|
|
class PermissionExemption(Exception):
|
||
|
|
def __init__(self, info: str, *args: object) -> None:
|
||
|
|
super().__init__(*args)
|
||
|
|
self.info = info
|
||
|
|
|
||
|
|
def __str__(self) -> str:
|
||
|
|
return self.info
|
||
|
|
|
||
|
|
def __repr__(self) -> str:
|
||
|
|
return self.info
|