mirror of
https://github.com/PaiGramTeam/GramCore.git
synced 2024-11-25 23:50:29 +00:00
xtaodada
1fe8a5efee
Co-authored-by: 洛水居室 <luoshuijs@outlook.com> Co-authored-by: Karako <karakohear@gmail.com> Co-authored-by: LittleMengBot <79637933+LittleMengBot@users.noreply.github.com> Co-authored-by: Nahida <NaHCOx@icloud.com> Co-authored-by: SiHuan <sihuan@sakuya.love> Co-authored-by: Chuangbo Li <im@chuangbo.li> Co-authored-by: zhxy-CN <admin@owo.cab> Co-authored-by: =?UTF-8?q?=E8=89=BE=E8=BF=AA?= <62269186+AnotiaWang@users.noreply.github.com>
8 lines
265 B
Python
8 lines
265 B
Python
"""此模块包含核心模块的错误的基类"""
|
|
from typing import Union
|
|
|
|
|
|
class ServiceNotFoundError(Exception):
|
|
def __init__(self, name: Union[str, type]):
|
|
super().__init__(f"No service named '{name if isinstance(name, str) else name.__name__}'")
|