如果我使用:
第一类:
Observable.fromCallable(() -> awsS3.beginUpload(data.bmpPath));
类2:
public String beginUpload(String filePath) {
//what if I want to throw error here?
}
如何在 beginUpload() 方法中抛出 Observable 错误?
如果我使用:
第一类:
Observable.fromCallable(() -> awsS3.beginUpload(data.bmpPath));
类2:
public String beginUpload(String filePath) {
//what if I want to throw error here?
}
如何在 beginUpload() 方法中抛出 Observable 错误?