-
- All Superinterfaces:
Tag
@Deprecated public interface ThrowsTag extends Tag
Deprecated.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.Represents a @throws or @exception documentation tag. Parses and holds the exception name and exception comment. Note: @exception is a backwards compatible synonymy for @throws.- See Also:
ExecutableMemberDoc.throwsTags()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ClassDoc
exception()
Deprecated.Return aClassDoc
that represents the exception.String
exceptionComment()
Deprecated.Return the exception comment associated with thisThrowsTag
.String
exceptionName()
Deprecated.Return the name of the exception associated with thisThrowsTag
.Type
exceptionType()
Deprecated.Return the type of the exception associated with thisThrowsTag
.-
Methods declared in interface com.sun.javadoc.Tag
firstSentenceTags, holder, inlineTags, kind, name, position, text, toString
-
-
-
-
Method Detail
-
exceptionName
String exceptionName()
Deprecated.Return the name of the exception associated with thisThrowsTag
.- Returns:
- name of the exception.
-
exceptionComment
String exceptionComment()
Deprecated.Return the exception comment associated with thisThrowsTag
.- Returns:
- exception comment.
-
exception
ClassDoc exception()
Deprecated.Return aClassDoc
that represents the exception. If the type of the exception is a type variable, return theClassDoc
of its erasure.This method cannot accommodate certain generic type constructs. The
exceptionType
method should be used instead.- Returns:
ClassDoc
that represents the exception.- See Also:
exceptionType()
-
exceptionType
Type exceptionType()
Deprecated.Return the type of the exception associated with thisThrowsTag
. This may be aClassDoc
or aTypeVariable
.- Returns:
- the type of the exception.
- Since:
- 1.5
-
-