Java Code Examples for io.reactivex.Notification#getError()
The following examples show how to use
io.reactivex.Notification#getError() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RecordingObserver.java From retrocache with Apache License 2.0 | 5 votes |
public Throwable takeError() { Notification<T> notification = takeNotification(); assertThat(notification.isOnError()) .as("Expected onError event but was " + notification) .isTrue(); return notification.getError(); }
Example 2
Source File: RecordingSubscriber.java From retrocache with Apache License 2.0 | 5 votes |
public Throwable takeError() { Notification<T> notification = takeNotification(); assertThat(notification.isOnError()) .as("Expected onError event but was " + notification) .isTrue(); return notification.getError(); }
Example 3
Source File: RecordingCompletableObserver.java From retrocache with Apache License 2.0 | 5 votes |
public Throwable takeError() { Notification<?> notification = takeNotification(); assertThat(notification.isOnError()) .as("Expected onError event but was " + notification) .isTrue(); return notification.getError(); }
Example 4
Source File: RecordingSingleObserver.java From retrocache with Apache License 2.0 | 5 votes |
public Throwable takeError() { Notification<T> notification = takeNotification(); assertThat(notification.isOnError()) .as("Expected onError event but was " + notification) .isTrue(); return notification.getError(); }
Example 5
Source File: RecordingMaybeObserver.java From retrocache with Apache License 2.0 | 5 votes |
public Throwable takeError() { Notification<T> notification = takeNotification(); assertThat(notification.isOnError()) .as("Expected onError event but was " + notification) .isTrue(); return notification.getError(); }