Package rx.exceptions

Class OnCompletedFailedException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class OnCompletedFailedException
    extends java.lang.RuntimeException
    Represents an exception used to re-throw errors thrown from Observer.onCompleted().
    See Also:
    Serialized Form
    • Field Summary

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

      Constructors 
      Constructor Description
      OnCompletedFailedException​(java.lang.String message, java.lang.Throwable throwable)
      Customizes the Throwable with a custom message and wraps it before it is to be re-thrown as an OnCompletedFailedException.
      OnCompletedFailedException​(java.lang.Throwable throwable)
      Wraps the Throwable before it is to be re-thrown as an OnCompletedFailedException.
    • 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

      • OnCompletedFailedException

        public OnCompletedFailedException​(java.lang.Throwable throwable)
        Wraps the Throwable before it is to be re-thrown as an OnCompletedFailedException.
        Parameters:
        throwable - the Throwable to re-throw; if null, a NullPointerException is constructed
      • OnCompletedFailedException

        public OnCompletedFailedException​(java.lang.String message,
                                          java.lang.Throwable throwable)
        Customizes the Throwable with a custom message and wraps it before it is to be re-thrown as an OnCompletedFailedException.
        Parameters:
        message - the message to assign to the Throwable to re-throw
        throwable - the Throwable to re-throw; if null, a NullPointerException is constructed