Guest User

Untitled

a guest
Aug 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. /**
  2. * [parseErrorHandler description]
  3. * method to handle parse error
  4. * by default it's updating the error information in the netpack reducer
  5. * override this method to write customized parse error handler
  6. * @param {object} parseError object containing parse error info
  7. */
  8. parseErrorHandler = (parseError) => this.dispatch(parseErrorHandler(parseError))
  9.  
  10.  
  11. /**
  12. * [backendErrorHandler description]
  13. * method to handle backend error
  14. * by default it's updating the error information in the netpack reducer
  15. * override this method to write customized backend error handler
  16. * @param {object} backendError object containing backend error info
  17. */
  18. backendErrorHandler = (backendError) => this.dispatch(backendErrorHandler(backendError))
  19.  
  20.  
  21. /**
  22. * [networkErrorHandler description]
  23. * method to handle network error
  24. * by default it's updating the error information in the netpack reducer
  25. * override this method to write customized network error handler
  26. * @param {object} networkError object containing network error info
  27. */
  28. networkErrorHandler = (networkError) => this.dispatch(networkErrorHandler(networkError))
Add Comment
Please, Sign In to add comment