![](/img/trans.png)
[英]Official recommendation / coding style guide on using multiple @throws tags for the same exception in JavaDoc
[英]Can I use multiple @throws tags for the same exception in Javadoc?
如果我的应用程序由于多种原因抛出相同的异常,我可以使用多个@throws
javadoc标记吗? 例如:
@throws UserException if issue 1 happened
@throws UserException if issue 2 happened
@throws UserException if issue 3 happened
是否被JavaDoc标准禁止?
刚测试了这个生成的JavaDoc包含了所有3个@throws。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.