throwError<T> function

Observable<T> throwError <T>(
  1. Object error,
  2. {StackTrace stackTrace,
  3. Scheduler scheduler}
)

An Observable that emits no items and immediately throws an error.

Implementation

Observable<T> throwError<T>(Object error,
        {StackTrace stackTrace, Scheduler scheduler}) =>
    ThrowErrorObservable<T>(
        error, stackTrace, scheduler ?? const ImmediateScheduler());