void CatchStatement::executeCatch(Context &context, Error const &err) const { if (_args->size() > 1) { // Place the error message into the specified variable. RefValue &ref = context.evaluator().evaluateTo<RefValue>(&_args->at(1)); ref.assign(new TextValue(err.asText())); } // Begin the catch compound. context.start(_compound.firstStatement(), next()); }