Top Description Fields Constructors
rx.exceptions

public Class OnErrorNotImplementedException

extends RuntimeException
Class Inheritance
Imports
rx.Subscriber

Represents an exception used to re-throw Subscriber#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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
OnErrorNotImplementedException(String
the message to assign to the Throwable to re-throw
message
,
Throwable
the Throwable to re-throw; if null, a NullPointerException is constructed
e
)

Customizes the Throwable with a custom message and wraps it before it is to be re-thrown as an OnErrorNotImplementedException.

public
OnErrorNotImplementedException(Throwable
the Throwable to re-throw; if null, a NullPointerException is constructed
e
)

Wraps the Throwable before it is to be re-thrown as an OnErrorNotImplementedException.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

OnErrorNotImplementedExceptionback to summary
public OnErrorNotImplementedException(String message, Throwable e)

Customizes the Throwable with a custom message and wraps it before it is to be re-thrown as an OnErrorNotImplementedException.

Parameters
message:String

the message to assign to the Throwable to re-throw

e:Throwable

the Throwable to re-throw; if null, a NullPointerException is constructed

OnErrorNotImplementedExceptionback to summary
public OnErrorNotImplementedException(Throwable e)

Wraps the Throwable before it is to be re-thrown as an OnErrorNotImplementedException.

Parameters
e:Throwable

the Throwable to re-throw; if null, a NullPointerException is constructed