Class Publishers.JustThrowPublisher<T>

java.lang.Object
io.micronaut.core.async.publisher.Publishers.JustThrowPublisher<T>
Type Parameters:
T - The type
All Implemented Interfaces:
Publishers.MicronautPublisher<T>, org.reactivestreams.Publisher<T>
Enclosing class:
Publishers

@Internal public static class Publishers.JustThrowPublisher<T> extends Object implements Publishers.MicronautPublisher<T>
A publisher that throws an error. Needs to be public for micronaut-aot.
  • Constructor Details

    • JustThrowPublisher

      public JustThrowPublisher(Throwable error)
  • Method Details

    • subscribe

      public void subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
      Specified by:
      subscribe in interface org.reactivestreams.Publisher<T>