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.RuntimeException
Represents 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 long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description OnErrorNotImplementedException(java.lang.String message, java.lang.Throwable e)
Customizes theThrowable
with a custom message and wraps it before it is to be re-thrown as anOnErrorNotImplementedException
.OnErrorNotImplementedException(java.lang.Throwable e)
Wraps theThrowable
before 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 theThrowable
with a custom message and wraps it before it is to be re-thrown as anOnErrorNotImplementedException
.- Parameters:
message
- the message to assign to theThrowable
to re-throwe
- theThrowable
to re-throw; if null, a NullPointerException is constructed
-
OnErrorNotImplementedException
public OnErrorNotImplementedException(java.lang.Throwable e)
Wraps theThrowable
before it is to be re-thrown as anOnErrorNotImplementedException
.- Parameters:
e
- theThrowable
to re-throw; if null, a NullPointerException is constructed
-
-