https://basescripts.com/javascript-try-and-catch-coding-example
JavaScript Try and Catch coding Example