Package rx.exceptions
Class OnErrorNotImplementedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- rx.exceptions.OnErrorNotImplementedException
-
- All Implemented Interfaces:
java.io.Serializable
public class OnErrorNotImplementedException extends java.lang.RuntimeExceptionRepresents an exception used to re-throwObserver.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."
- See Also:
- RxJava issue #198, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description OnErrorNotImplementedException(java.lang.String message, java.lang.Throwable e)Customizes theThrowablewith a custom message and wraps it before it is to be re-thrown as anOnErrorNotImplementedException.OnErrorNotImplementedException(java.lang.Throwable e)Wraps theThrowablebefore it is to be re-thrown as anOnErrorNotImplementedException.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OnErrorNotImplementedException
public OnErrorNotImplementedException(java.lang.String message, java.lang.Throwable e)Customizes theThrowablewith a custom message and wraps it before it is to be re-thrown as anOnErrorNotImplementedException.- Parameters:
message- the message to assign to theThrowableto re-throwe- theThrowableto re-throw; if null, a NullPointerException is constructed
-
OnErrorNotImplementedException
public OnErrorNotImplementedException(java.lang.Throwable e)
Wraps theThrowablebefore it is to be re-thrown as anOnErrorNotImplementedException.- Parameters:
e- theThrowableto re-throw; if null, a NullPointerException is constructed
-
-