RxJava



rx.exceptions
Class OnErrorNotImplementedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by rx.exceptions.OnErrorNotImplementedException
All Implemented Interfaces:
java.io.Serializable

public class OnErrorNotImplementedException
extends java.lang.RuntimeException

Used for re-throwing Observer.onError(Throwable) when an implementation doesn't exist. https://github.com/Netflix/RxJava/issues/198 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."

See Also:
Serialized Form

Constructor Summary
OnErrorNotImplementedException(java.lang.String message, java.lang.Throwable e)
           
OnErrorNotImplementedException(java.lang.Throwable e)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnErrorNotImplementedException

public OnErrorNotImplementedException(java.lang.String message,
                                      java.lang.Throwable e)

OnErrorNotImplementedException

public OnErrorNotImplementedException(java.lang.Throwable e)