// Catch it with catchError() return Future.error("This is the error", StackTrace.fromString("This is its trace"));