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

软件架构错误处理优化建议 #148

Open
jerry765 opened this issue Dec 21, 2023 · 1 comment
Open

软件架构错误处理优化建议 #148

jerry765 opened this issue Dec 21, 2023 · 1 comment

Comments

@jerry765
Copy link

在项目架构方面,我注意到多个模块在处理错误时缺乏统一一致。为了提高代码健壮性,我建议引入一个统一的错误处理机制,以下为主要的改动点:

  1. 统一错误类型:定义 Api ErrorCommon Error
  2. 统一错误处理函数:创建错误处理函数,捕获和处理所有相关错误,并考虑提供适当的用户反馈
  3. 更新相关文件:在原有的逻辑中引入错误处理函数

通过这些改动,希望提高应用的整体稳定性,并在出现错误时提供更清晰的用户反馈。这些优化将有助于提升用户体验,并使代码更易于维护和扩展。

@pany-ang
Copy link
Member

我最近有事耽搁,后面我会仔细查看你的所有 PR,非常感谢你的建议!

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

No branches or pull requests

2 participants