Is there a way to set an error handling function as the global error handling function in the next js backend like we have in node js and we can use it in the app.js with app.use()?
I am building a next js application and could not get a proper answer to this question whether I need to call the error handling function every time after throwing an error to handle it or is there a way that next js can automatically handle it?