Package rx.exceptions

Class OnCompletedFailedException

All Implemented Interfaces:
Serializable

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

  • Constructor Details

    • OnCompletedFailedException

      public OnCompletedFailedException(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(String message, 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