I have a class for handling errors, and it is not using the try-throw-catch
mechanism.
When I am commenting code that uses that class, should I use the the @throws
tag even though I do not actually throwing anything?
EDIT (try to make my question more clear):
My question is if the @throws
tags means that an error could occure when using the code and I am handling it in some way, or it means that an error could occure and I am handling it by using the throw
keyword specifically?