goldbergyoni / nodebestpractices

:white_check_mark: The Node.js best practices list (July 2024)
https://twitter.com/nodepractices/
Creative Commons Attribution Share Alike 4.0 International
99.21k stars 10.08k forks source link

Update the way of using try catch on every request or controller #1223

Open Abdul-Wahab-dev opened 1 year ago

Abdul-Wahab-dev commented 1 year ago

we can create a centralise function for managing try catch on every request or control instead of add try and catch block on every request or control