令参数符合标准

This commit is contained in:
hemengyang
2022-01-12 18:31:12 +08:00
parent a5f32febbd
commit 456d333568
17 changed files with 85 additions and 170 deletions

View File

@ -22,8 +22,7 @@ class ParserExit(NoneBotException):
"""
`shell command` 处理消息失败时返回的异常
:参数:
参数:
status
message
"""
@ -50,8 +49,7 @@ class IgnoredException(ProcessException):
"""
指示 NoneBot 应该忽略该事件。可由 PreProcessor 抛出。
:参数:
参数:
reason: 忽略事件的原因
"""
@ -69,8 +67,7 @@ class MockApiException(ProcessException):
"""
指示 NoneBot 阻止本次 API 调用或修改本次调用返回值,并返回自定义内容。可由 api hook 抛出。
:参数:
参数:
result: 返回的内容
"""
@ -165,8 +162,7 @@ class AdapterException(NoneBotException):
"""
代表 `Adapter` 抛出的异常,所有的 `Adapter` 都要在内部继承自这个 `Exception`
:参数:
参数:
adapter_name: 标识 adapter
"""