问题
One nice thing about Java, which was also a curse, is that you always knew what exceptions a method could throw.
Is there a static code analysis tool that can determine what exceptions a method can throw?
It would be great to be able to type
///
and have the xml documentation declaration section fill in the<exceptions>
block automatically
回答1:
If you use Resharper, you can use this plugin: http://code.google.com/p/agentjohnsonplugin/
来源:https://stackoverflow.com/questions/4359465/visual-studio-code-analyzer-to-determine-what-exceptions-a-method-can-throw