What is the difference between the throw statement and the throws clause? code example
Example: What is the difference between throw exceptions and throw clauses?
Throw exceptions overwrite the stack trace, while throw clauses retain the stack information.