catchError<T> static method
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);
}