Concept Flow - Throw and rethrow patterns
Start
Try block
Exception occurs?
No→End
Yes
Catch block
Throw new exception
Rethrow original exception
Exception propagates
End
The program tries code; if an error happens, it catches it and either throws a new error or rethrows the original one to pass it up.