For additional information about error handling in JavaScript, the following resources may be helpful:

MDN Web Docs - try…catch

MDN Web Docs - throw

GeeksforGeeks - Difference Between try..catch and module.then().catch()?

Medium: Jamie Garcia Diaz - Try/Catch vs .then().catch(): Which Error Handling Approach is Better?