Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * [parseErrorHandler description]
- * method to handle parse error
- * by default it's updating the error information in the netpack reducer
- * override this method to write customized parse error handler
- * @param {object} parseError object containing parse error info
- */
- parseErrorHandler = (parseError) => this.dispatch(parseErrorHandler(parseError))
- /**
- * [backendErrorHandler description]
- * method to handle backend error
- * by default it's updating the error information in the netpack reducer
- * override this method to write customized backend error handler
- * @param {object} backendError object containing backend error info
- */
- backendErrorHandler = (backendError) => this.dispatch(backendErrorHandler(backendError))
- /**
- * [networkErrorHandler description]
- * method to handle network error
- * by default it's updating the error information in the netpack reducer
- * override this method to write customized network error handler
- * @param {object} networkError object containing network error info
- */
- networkErrorHandler = (networkError) => this.dispatch(networkErrorHandler(networkError))
Add Comment
Please, Sign In to add comment