Skip to content

NetworkFailure/ApiFailure and Moshi exceptions? #84

Closed Answered by ZacSweers
mlewandowskipt asked this question in Q&A
Discussion options

You must be logged in to vote

You would need to write your own intercepting JsonAdapter to capture those and rethrow them with your own exception. This is what we do in Slack's network stack and the intended pattern for this scenario in EitherNet.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mlewandowskipt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #83 on September 25, 2024 17:33.