Class OnErrorNotImplementedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.reactivex.rxjava3.exceptions.OnErrorNotImplementedException
All Implemented Interfaces:
Serializable

public final class OnErrorNotImplementedException extends RuntimeException
Represents an exception used to signal to the RxJavaPlugins.onError() that a callback-based subscribe() method on a base reactive type didn't specify an onError handler.

History: 2.0.6 - experimental; 2.1 - beta

Since:
2.2
See Also:
  • Field Details

  • Constructor Details

    • OnErrorNotImplementedException

      public OnErrorNotImplementedException(String message, @NonNull @NonNull Throwable e)
      Customizes the Throwable with a custom message and wraps it before it is signalled to the RxJavaPlugins.onError() handler as OnErrorNotImplementedException.
      Parameters:
      message - the message to assign to the Throwable to signal
      e - the Throwable to signal; if null, a NullPointerException is constructed
    • OnErrorNotImplementedException

      public OnErrorNotImplementedException(@NonNull @NonNull Throwable e)
      Wraps the Throwable before it is signalled to the RxJavaPlugins.onError() handler as OnErrorNotImplementedException.
      Parameters:
      e - the Throwable to signal; if null, a NullPointerException is constructed