Unhandled Exception checker plugin for Visual Studio

谁说我不能喝 提交于 2019-12-12 08:48:29

问题


I would like to be able, at compile time, to ask any given method what possible Exceptions might get thrown by invoking it. The list of Exceptions should include any uncaught Exception that might get thrown in any nested method invokation. Caught Exceptions should not be included in the list as I'm only interested in the Exceptions that might bubble up to my own code.

Does a plug-in for Visual Studio with that feature or something similar exist?

It would be great if this plug-in were also able to assist in the documentation of my code.

Edit:
Similar question: Checked exception catching in C#


回答1:


I actually just found the site, it's Red-Gate that has a tool called Exception Hunter, which pretty much does this.

Not right:
I am fairly certain one of the DevExpress products includes a plugin that can do (something like?) this.



来源:https://stackoverflow.com/questions/1021104/unhandled-exception-checker-plugin-for-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!