Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I run javadoc, I get the following exception warning: “Method X declares that it throws class Y, but there is no corresponding @exception item.” What does this message mean?

0
Posted

When I run javadoc, I get the following exception warning: “Method X declares that it throws class Y, but there is no corresponding @exception item.” What does this message mean?

0

This warning message means that there is no description on the line that contains the @exception tag. The @exception line should look something like: * @exception ReceiverException An exception thrown by the receiver. You get the warning if there is a return immediately after the exception name (ReceiverException). If you put the description on the next line, for example, you get this warning. Workaround – Insert a space after the exception name.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.