runBinaryGuarded<T1, T2> method

void runBinaryGuarded<T1, T2>(
  1. void action(
    1. T1,
    2. T2
    ),
  2. T1 argument1,
  3. T2 argument2
)

Executes the given action with argument1 and argument2 in this zone and catches synchronous errors.

See runGuarded.

Implementation

void runBinaryGuarded<T1, T2>(
  void Function(T1, T2) action,
  T1 argument1,
  T2 argument2,
) {
  try {
    return _runBinaryZoned<void, T1, T2>(this, action, argument1, argument2);
  } catch (e, s) {
    _handleUncaughtErrorZoned(this, e, s);
  }
}