-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
793ebf4
commit e11045e
Showing
5 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# 更新日志 | ||
|
||
## Alconna 1.8.8 | ||
|
||
### 修复 | ||
|
||
- 修复子命令在自身名称解析失败时其结果被错误存储的问题 | ||
|
||
## Alconna 1.8.7 | ||
|
||
### 改进 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,57 @@ | ||
"""Alconna 错误提示相关""" | ||
|
||
|
||
class ParamsUnmatched(Exception): | ||
class AlconnaException(Exception): | ||
"""Alconna 异常基类""" | ||
|
||
|
||
class ParamsUnmatched(AlconnaException): | ||
"""一个传入参数没有被选项或Args匹配""" | ||
|
||
|
||
class InvalidParam(Exception): | ||
class InvalidParam(AlconnaException): | ||
"""传入参数验证失败""" | ||
|
||
|
||
class ArgumentMissing(Exception): | ||
class ArgumentMissing(AlconnaException): | ||
"""组件内的 Args 参数未能解析到任何内容""" | ||
|
||
|
||
class InvalidArgs(Exception): | ||
class InvalidArgs(AlconnaException): | ||
"""构造 alconna 时某个传入的参数不正确""" | ||
|
||
|
||
class NullMessage(Exception): | ||
class NullMessage(AlconnaException): | ||
"""传入了无法解析的消息""" | ||
|
||
|
||
class UnexpectedElement(Exception): | ||
class UnexpectedElement(AlconnaException): | ||
"""给出的消息含有不期望的元素""" | ||
|
||
|
||
class ExecuteFailed(Exception): | ||
class ExecuteFailed(AlconnaException): | ||
"""执行失败""" | ||
|
||
|
||
class ExceedMaxCount(Exception): | ||
class ExceedMaxCount(AlconnaException): | ||
"""注册的命令数量超过最大长度""" | ||
|
||
|
||
class BehaveCancelled(Exception): | ||
class BehaveCancelled(AlconnaException): | ||
"""行为执行被停止""" | ||
|
||
|
||
class OutBoundsBehave(Exception): | ||
class OutBoundsBehave(AlconnaException): | ||
"""越界行为""" | ||
|
||
|
||
class FuzzyMatchSuccess(Exception): | ||
class FuzzyMatchSuccess(AlconnaException): | ||
"""模糊匹配成功""" | ||
|
||
|
||
class PauseTriggered(Exception): | ||
class PauseTriggered(AlconnaException): | ||
"""解析状态保存触发""" | ||
|
||
|
||
class SpecialOptionTriggered(Exception): | ||
class SpecialOptionTriggered(AlconnaException): | ||
"""内置选项解析触发""" |