Package rx.exceptions
Class OnErrorNotImplementedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
rx.exceptions.OnErrorNotImplementedException
- All Implemented Interfaces:
Serializable
Represents an exception used to re-throw
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."
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOnErrorNotImplementedException
(String message, Throwable e) Customizes theThrowable
with a custom message and wraps it before it is to be re-thrown as anOnErrorNotImplementedException
.Wraps theThrowable
before it is to be re-thrown as anOnErrorNotImplementedException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
OnErrorNotImplementedException
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
Wraps theThrowable
before it is to be re-thrown as anOnErrorNotImplementedException
.- Parameters:
e
- theThrowable
to re-throw; if null, a NullPointerException is constructed
-