关于 Java 的一个好处,也是一个诅咒,就是你总是知道一个方法可以抛出什么异常。
是否有静态代码分析工具可以确定方法可以抛出哪些异常?
It would be great to be able to type
///
and have the xml documentation declaration section fill in the<exceptions>
block automatically
最佳答案
如果你使用Resharper,你可以使用这个插件: http://code.google.com/p/agentjohnsonplugin/
关于c# - Visual Studio : Code analyzer to determine what exceptions a method can throw?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4359465/