Queries:
Why does the try block not catch the error in the asynchronous method in Javascript? Could it be understood in terms of execution context?
Is there a way in which we could wrap all error handling in the entry file or at a higher level?
Context: In a multi-layer application (e.g. controller, service, DAO) in PHP, an umbrella try-catch block in the controller layer could catch the errors in any of the lower layers. Is it possible to do something similar in node.js?