Package rx.exceptions

Class UnsubscribeFailedException

All Implemented Interfaces:
Serializable

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

  • Constructor Details

    • UnsubscribeFailedException

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

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