Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

改进异常处理 #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yoctocell
Copy link
Contributor

@yoctocell yoctocell commented Nov 21, 2024

目前还有一些异常没有覆盖,不过这些出现的机率都较小(见#2),等有了更多数据可以再想想要怎么处理。

  • 正确地处理async函数抛出的异常
  • 网络异常时进行重试
  • 对某些错误码进行特殊处理

之前并没有等待async函数的返回值,必须先await才能获得被抛出的异常。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant