Custom Retrofit Errorhandler Gives Undeclaredthrowableexception
Based on this post How should I handle 'No internet connection' with Retrofit on Android I made a custom ErrorHandler private static class CustomErrorHandler implements ErrorHandl
Solution 1:
If you are returning a checked exception you need to declare it on the interface.
interface MyService {
Foo doFoo() throws MyNetworkError;
}
Post a Comment for "Custom Retrofit Errorhandler Gives Undeclaredthrowableexception"