Response的onFailure参数修改为HttpException
This commit is contained in:
@ -87,6 +87,7 @@ import de.greenrobot.event.EventBus;
|
||||
import okhttp3.MediaType;
|
||||
import okhttp3.RequestBody;
|
||||
import okhttp3.ResponseBody;
|
||||
import retrofit2.adapter.rxjava.HttpException;
|
||||
import rx.Observable;
|
||||
import rx.android.schedulers.AndroidSchedulers;
|
||||
import rx.functions.Action1;
|
||||
@ -598,7 +599,7 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Throwable e) {
|
||||
public void onFailure(HttpException e) {
|
||||
latch.countDown();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user