Monday 25 May 2020

Is it good to have “error driven actions” ?

Is it good practice to have actions in app witch may activate from backend error function?For example there is an api for creating order, all users must have email to create order, is it good to return some error { error: {code:55//missing email}}and app will open page where user must enter email or to have some api for user profile check and return regular error from backend if profile is not completed?

Submitted May 25, 2020 at 04:57PM by Grigsuv

No comments:

Post a Comment