-  
       
- All Superinterfaces:
 -  
         
Tag 
@Deprecated(since="9", forRemoval=true) public interface ThrowsTag extends Tag
Deprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.表示@throws或@exception文档标记。 解析并保存异常名称和异常注释。 注意:@ exception是@throws的向后兼容同义词。 
-  
        
       
-  
             
方法摘要
所有方法 实例方法 抽象方法 弃用的方法 变量和类型 方法 描述 ClassDocexception()不推荐使用,要删除:此API元素将在以后的版本中删除。返回代表异常的ClassDoc。StringexceptionComment()不推荐使用,要删除:此API元素将在以后的版本中删除。返回与此ThrowsTag关联的异常评论。StringexceptionName()不推荐使用,要删除:此API元素将在以后的版本中删除。返回与此ThrowsTag关联的例外的名称。TypeexceptionType()不推荐使用,要删除:此API元素将在以后的版本中删除。返回与此ThrowsTag关联的异常类型。-  
               
声明方法的接口 com.sun.javadoc.Tag
firstSentenceTags, holder, inlineTags, kind, name, position, text, toString 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
exceptionName
String exceptionName()
Deprecated, for removal: This API element is subject to removal in a future version.返回与此ThrowsTag关联的异常的名称。- 结果
 - 例外的名称。
 
 
-  
exceptionComment
String exceptionComment()
Deprecated, for removal: This API element is subject to removal in a future version.返回与此ThrowsTag关联的异常评论。- 结果
 - 例外评论。
 
 
-  
exception
ClassDoc exception()
Deprecated, for removal: This API element is subject to removal in a future version.返回代表异常的ClassDoc。 如果异常的类型是类型变量,则返回其擦除的ClassDoc。此方法无法容纳某些泛型类型构造。 应该使用
exceptionType方法。- 结果
 -  
              
ClassDoc表示异常。 - 另请参见:
 -  
              
exceptionType() 
 
-  
exceptionType
Type exceptionType()
Deprecated, for removal: This API element is subject to removal in a future version.返回与此ThrowsTag关联的异常的类型。 这可能是ClassDoc或TypeVariable。- 结果
 - 异常的类型。
 - 从以下版本开始:
 - 1.5
 
 
 -  
 
 -