Introduction
Errors happen when something goes wrong in a script. Knowing the difference between terminating and non-terminating errors helps you decide how your script should react.
When you want your script to stop immediately if a serious problem occurs.
When you want your script to keep running even if some small errors happen.
When you need to handle errors differently depending on how bad they are.
When debugging scripts to find out why something failed.
When writing scripts that manage files or system settings and need careful error control.