I am looking for recommendations on the Javadoc tag usage in my code. I want to conform to the Javadoc style guides and whether or not the @see tag would be appropriate in this particular case.
An example of the code that I have made a Javadoc comment for
/** * * Will check if the given shader (vertex, fragment etc) compiled successfully! * * If the compilation was successful, no change will happen and nothing will be returned. * * @throws RuntimeException * if there is an error in compiling the shader. */ Would it be appropriate to use the following?
/** * * Will check if the given shader (vertex, fragment etc) compiled successfully! * * If the compilation was successful, no change will happen and nothing will be returned. * * @see '@throws' for information on a compile error * * @throws RuntimeException * Thrown if there is an error in compiling the shader. */ Also, would the " '@throws' " be appropriate? Is it possible to remove the quote marks around it or would the javadoc not generate?
EDIT
I am not asking about the usage of @see when referencing another class. I am talking about the usage when referencing a part of the current piece of documentation. Hence why I asked about the quotation marks around @throws
RuntimeExceptionis quite broad and the description doesn't really help. Considering that aRuntimeException(or its subclass) can be thrown even if there wasn't a problem with the compiling but something else.