We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a93f6 commit b09d734Copy full SHA for b09d734
AndroidExecLibrary/src/main/java/com/excellence/exec/Command.java
@@ -215,7 +215,17 @@ public void subscribe(ObservableEmitter<String> emitter) throws Exception {
215
mIListener.onSuccess(result.toString());
216
}
217
218
- }).subscribeOn(Schedulers.io()).subscribe();
+ }).subscribeOn(Schedulers.io()).subscribe(new Consumer<String>() {
219
+ @Override
220
+ public void accept(String s) throws Exception {
221
+
222
+ }
223
+ }, new Consumer<Throwable>() {
224
225
+ public void accept(Throwable throwable) throws Exception {
226
+ mIListener.onError(throwable);
227
228
+ });
229
} catch (Exception e) {
230
mIListener.onError(e);
231
0 commit comments