添加数据验证逻辑,抛出自定义异常以处理验证失败情况;更新错误处理逻辑以显示详细错误信息
This commit is contained in:
1 parent
28e35ea429
commit
96350bb8e2
3 files changed
+41
-8
No files matched your search
@@ -269,3 +269,13 @@ class AchievementWidget(Widget):
|
||||
duration=5000,
|
||||
parent=self
|
||||
)
|
||||
elif level == LOGLEVEL.ERROR:
|
||||
InfoBar.error(
|
||||
title='错误',
|
||||
content=content,
|
||||
orient=Qt.Horizontal,
|
||||
isClosable=True,
|
||||
position=InfoBarPosition.TOP_RIGHT,
|
||||
duration=-1,
|
||||
parent=self
|
||||
)
|
||||
Reference in new issue
Block a user