Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Error Handling #8

Closed
TrueKage opened this issue Nov 20, 2020 · 2 comments
Closed

Custom Error Handling #8

TrueKage opened this issue Nov 20, 2020 · 2 comments

Comments

@TrueKage
Copy link

TrueKage commented Nov 20, 2020

Is there any way we can deserialize the json in errorBody ?

@skydoves
Copy link
Owner

Hi,
You can resolve it using the ApiErrorModeMapper.
The map function will receive the raw ApiResponse.Failure.Error<*> model and you can customize it to your own error response. And you can handle the customized model via the map extension.

@TrueKage
Copy link
Author

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants