@Override public void onFailure(Call<R> call, Throwable throwable) { // TODO(rfink): Would be good to not leak okhttp internals here if (throwable instanceof IoRemoteException) { future.completeExceptionally( ((IoRemoteException) throwable).getWrappedException()); } else { future.completeExceptionally(throwable); } } });
callback.onFailure(call, new IoRemoteException(httpError.get())); return;
callback.onFailure(call, new IoRemoteException(httpError.get())); return;
@Override public void onFailure(Call<R> call, Throwable throwable) { // TODO(rfink): Would be good to not leak okhttp internals here if (throwable instanceof IoRemoteException) { setException(((IoRemoteException) throwable).getWrappedException()); } else { setException(throwable); } } }
if (e.getCause() instanceof IoRemoteException) { RemoteException wrappedException = ((IoRemoteException) e.getCause()).getWrappedException(); RemoteException correctStackTrace = new RemoteException( wrappedException.getError(),
if (e.getCause() instanceof IoRemoteException) { RemoteException wrappedException = ((IoRemoteException) e.getCause()).getWrappedException(); RemoteException correctStackTrace = new RemoteException( wrappedException.getError(),