Add a public static BodySubscribers::failedSubscriber method to create a failed BodySubscriber

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 19
    • Component/s: core-libs

      It might be helpful to provide a public static method to create a failed body subscriber. The failed body subscriber would:
      - return a failed completion stage in getBody()
      - cancel its subscription in onSubscribe()

      Something like:

      public static <T> BodySubscriber<T> failedSubscriber(Throwable t);

            Assignee:
            Jaikiran Pai
            Reporter:
            Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: