Skip to content

Commit 5b167c0

Browse files
stepangothomasnield
authored andcommitted
Wrap OnErrorNotImplementedException (#100)
1 parent b1112d0 commit 5b167c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/rx/lang/kotlin/subscribers.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import rx.Completable
44
import rx.Observable
55
import rx.Single
66
import rx.Subscription
7+
import rx.exceptions.OnErrorNotImplementedException
78

89
private val onNextStub: (Any) -> Unit = {}
9-
private val onErrorStub: (Throwable) -> Unit = {}
10+
private val onErrorStub: (Throwable) -> Unit = { throw OnErrorNotImplementedException(it) }
1011
private val onCompleteStub: () -> Unit = {}
1112

1213
/**

0 commit comments

Comments
 (0)