redis-patterns-console
redis-patterns-console copied to clipboard
Add Global Error Handler
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
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?
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!