Class OnErrorNotImplementedException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class OnErrorNotImplementedException
    extends java.lang.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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      OnErrorNotImplementedException​(@NonNull java.lang.Throwable e)
      Wraps the Throwable before it is signalled to the RxJavaPlugins.onError() handler as OnErrorNotImplementedException.
      OnErrorNotImplementedException​(java.lang.String message, @NonNull java.lang.Throwable e)
      Customizes the Throwable with a custom message and wraps it before it is signalled to the RxJavaPlugins.onError() handler as OnErrorNotImplementedException.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OnErrorNotImplementedException

        public OnErrorNotImplementedException​(java.lang.String message,
                                              @NonNull
                                              @NonNull java.lang.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 java.lang.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