redis-patterns-console icon indicating copy to clipboard operation
redis-patterns-console copied to clipboard

Add Global Error Handler

Open fsciuti opened this issue 6 years ago • 2 comments
trafficstars

Angular has a global error handling class called errorHandler that provides a hook for centralized exception handling inside your application. We need to detect errors with a class inherited by errorHandler

fsciuti avatar Nov 12 '19 09:11 fsciuti

I could build a class named GlobalErrorHandler that inherits from ErrorHandler and set it up in the providers' configuration to get it working. Just one thing: how do you picture the user interaction with errors? Toast notifications? Browser alert? Just in console for development purposes?

fathorMB avatar Nov 12 '19 15:11 fathorMB

Hi @fathorMB, we should implement a simple toast or snack bar (without Material or similar). Anyway, a simple console log might be right for now!

fsciuti avatar Nov 12 '19 20:11 fsciuti