This package provides a simple error handling mechanism for your application.
npm install @wix/error-handlerThis package provides a simple error handling mechanism for your application.
The library will extract the following our of a error response:
- status code
- error code
- error details
The consumer will provide a mapping object to map status code + error code to:
- message
- action.text
- action.onClick