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

建议不要抛出 Exception 类型异常 #5

Open
lindexi opened this issue Jan 14, 2020 · 1 comment
Open

建议不要抛出 Exception 类型异常 #5

lindexi opened this issue Jan 14, 2020 · 1 comment

Comments

@lindexi
Copy link

lindexi commented Jan 14, 2020

throw new Exception($"缺少模板名称为 {PART_POPUPSTACKCONTROL} 类型为 {typeof(ContentPresenter)} 的组件");

一文看懂 .NET 的异常处理机制、原则以及最佳实践 - walterlv

@MrZhangYuan
Copy link
Owner

是的,当时为了快速把项目建起来,对于Exception没有细心处理,后面会慢慢优化掉

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