joh*_*ohn 6 java javadoc throw
我想在我的代码中添加一个JavaDoc.我需要在一次抛出中添加多个异常.当我在下面添加时,它只识别NullPointerException不是IllegalArgumentException.有什么方法可以在单个throw标签中提供多个异常,这样当我将鼠标放在方法上时它可以识别这两个异常吗?
@throws NullPointerException, IllegalArgumentException when invalid userId, timeout is passed
Run Code Online (Sandbox Code Playgroud)
或者我需要这样做?通过这个,我重复两次相同的评论.
@throws NullPointerException when invalid userId, timeout is passed
@throws IllegalArgumentException when invalid userId, timeout is passed
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2418 次 |
| 最近记录: |