Handle Validation Exception 422
fathialamre opened this issue · 4 comments
fathialamre commented
How I can get vaidation errors from backend ?
ashishrawat2911 commented
Hi @fathialamre
Add new exception here
fathialamre commented
Hi @ashishrawat2911
I tried above but not working, please explain it
Thanks
AbdullahChauhan commented
Hello @fathialamre
Add the one more param "dynamic data" to this func. Now pass this value "error.response.data" to handleResponse func here so this assign to your first param. This way you can got the error data response inside this function specific to any status code!
fathialamre commented
Hello @fathialamre
Add the one more param "dynamic data" to this func. Now pass this value "error.response.data" to handleResponse func here so this assign to your first param. This way you can got the error data response inside this function specific to any status code!
Thanks