setError method

Bloom<T> setError(
  1. Object error, [
  2. StackTrace? stackTrace
])

Injects an error state into the coupler with optional stackTrace.

  • error: The error or exception object to transition into.
  • stackTrace: Optional stack trace associated with error.

Ensures:

  • Transitions the coupler to an error state and propagates dirty invalidation downstream.
  • Returns the previously attached inbound node.

Implementation

Bloom<T> setError(Object error, [StackTrace? stackTrace]) => _proxy._setError(error, stackTrace);