Skip to content

Commit 6fb17b5

Browse files
committed
OnError(null) forbidden by contract
ReactiveX/RxJava#3126
1 parent 4fe481e commit 6fb17b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

documentation/contract.markdown

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ id: contract
6060
may release its resources and terminate, and its observers should not attempt to communicate with it any
6161
further.
6262
</p><p>
63-
Before an Observable releases its resources and terminates it must first issue either an OnCompleted or OnError
64-
notification to all of the observers that are subscribed to it.
63+
An OnError notification must contain the cause of the error (that is to say, it is invalid to call OnError with
64+
a <code>null</code> value).
65+
</p><p>
66+
Before an Observable terminates it must first issue either an OnCompleted or OnError notification to all of the
67+
observers that are subscribed to it.
6568
</p>
6669
<h2>Subscribing and Unsubscribing</h2>
6770
<p>

0 commit comments

Comments
 (0)