Closed burakJs closed 1 month ago
@burakJs as one of the solutions we can throw a DioException so it will be handled by catch case.
@burakJs as one of the solutions we can throw a DioException so it will be handled by catch case.
It seems logical. I will open a PR for this and then test it in my project and share the result here. Thank you very much for the solution suggestion
I tried this solution and i got error model in response.error.model
thanks for it @behzodfaiziev
I have the same model for both successful and error cases
Since it is like this, I need to be able to receive my model in case of error. That's why I edited the
receiveDataWhenStatusError
andvalidateStatus
valuesWhen I get an error, I cannot get the status I expect because of the code I specified below in the send method in the package.
My response:
The response I received