catchError<T> static method

T catchError<T>(
  1. dynamic error,
  2. StackTrace stacktrace
)

Utility method that can be used for wrapping errors thrown by Futures in an AlarmException.

Implementation

static T catchError<T>(dynamic error, StackTrace stacktrace) {
  throw fromError(error, stacktrace);
}