public class OnErrorNotImplementedException
extends java.lang.RuntimeException
Observer.onError(Throwable)
when an implementation doesn't
exist.
Rx Design Guidelines 5.2:
"when calling the Subscribe method that only has an onNext argument, the OnError behavior will be to rethrow the exception on the thread that the message comes out from the observable sequence. The OnCompleted behavior in this case is to do nothing."
Constructor and Description |
---|
OnErrorNotImplementedException(java.lang.String message,
java.lang.Throwable e)
Customizes the
Throwable with a custom message and wraps it before it is to be re-thrown as an
OnErrorNotImplementedException . |
OnErrorNotImplementedException(java.lang.Throwable e)
Wraps the
Throwable before it is to be re-thrown as an OnErrorNotImplementedException . |
public OnErrorNotImplementedException(java.lang.String message, java.lang.Throwable e)
Throwable
with a custom message and wraps it before it is to be re-thrown as an
OnErrorNotImplementedException
.message
- the message to assign to the Throwable
to re-throwe
- the Throwable
to re-throw; if null, a NullPointerException is constructedpublic OnErrorNotImplementedException(java.lang.Throwable e)
Throwable
before it is to be re-thrown as an OnErrorNotImplementedException
.e
- the Throwable
to re-throw; if null, a NullPointerException is constructed