@prague-digi/error-handler
v1.0.2
Published
Error handler catching unexpected exceptions
Downloads
2
Readme
@prague-digi/error-handler
Global error handler for catching unexpected exceptions.
Required peer dependency - https://gitlab.com/moneta-digi/redux-logger
Usage
- Somewhere on the top level include
import errorHandler from '@prague-digi/error-handler'
errorHandler(onErrorCallback)
onErrorCallback: (message) => void
- (optional) Callback to call on error, receives
message
as the first argument