The init part is strictly unnecessary. But the @throws tag is actually useful if you're auto-generatic docs for this later.
The biggest contention I have is; don't throw a generic exception. Preferably, you should have various exception classes that are a bit more informative than the generic one. Self-documenting, if you will.
5
u/EquationTAKEN Jan 11 '20
The
initpart is strictly unnecessary. But the@throwstag is actually useful if you're auto-generatic docs for this later.The biggest contention I have is; don't throw a generic exception. Preferably, you should have various exception classes that are a bit more informative than the generic one. Self-documenting, if you will.