fail method

void fail(
  1. Object error, [
  2. StackTrace? stackTrace
])

Ends the relay with a terminal owner-supplied failure.

Implementation

void fail(Object error, [StackTrace? stackTrace]) =>
    _finish(error: error, stack: stackTrace);