Based on this post How should I handle "No internet connection" with Retrofit on Android
I made a custom ErrorHandler
ErrorHandler
private
If you are returning a checked exception you need to declare it on the interface.
interface MyService { Foo doFoo() throws MyNetworkError; }