本文整理汇总了Java中io.reactivex.Notification.getError方法的典型用法代码示例。如果您正苦于以下问题:Java Notification.getError方法的具体用法?Java Notification.getError怎么用?Java Notification.getError使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类io.reactivex.Notification
的用法示例。
在下文中一共展示了Notification.getError方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: calcNext
import io.reactivex.Notification; //导入方法依赖的package包/类
private void calcNext() {
if (completed) {
return;
}
if (next == null) {
Notification<T> take = uncheck(queue::take);
if (take.isOnNext()) {
next = take;
} else if (take.isOnError()) {
completed = true;
throw new RuntimeException(take.getError());
} else {
completed = true;
}
}
}
示例2: takeError
import io.reactivex.Notification; //导入方法依赖的package包/类
public Throwable takeError() {
Notification<T> notification = takeNotification();
assertThat(notification.isOnError())
.as("Expected onError event but was " + notification)
.isTrue();
return notification.getError();
}
示例3: takeError
import io.reactivex.Notification; //导入方法依赖的package包/类
public Throwable takeError() {
Notification<?> notification = takeNotification();
assertThat(notification.isOnError())
.as("Expected onError event but was " + notification)
.isTrue();
return notification.getError();
}