Skip to content

Commit

Permalink
Wrap OnErrorNotImplementedException (ReactiveX#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepango authored and thomasnield committed Mar 14, 2017
1 parent b1112d0 commit 5b167c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/rx/lang/kotlin/subscribers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import rx.Completable
import rx.Observable
import rx.Single
import rx.Subscription
import rx.exceptions.OnErrorNotImplementedException

private val onNextStub: (Any) -> Unit = {}
private val onErrorStub: (Throwable) -> Unit = {}
private val onErrorStub: (Throwable) -> Unit = { throw OnErrorNotImplementedException(it) }
private val onCompleteStub: () -> Unit = {}

/**
Expand Down

0 comments on commit 5b167c0

Please sign in to comment.