else {
VariableReference exceptionVar = context.getVariable(exceptionVariableName);
if (!exceptionVar.getType().isAssignableTo(Throwable.class)) {
throw new InvalidTypeException("Variable " + exceptionVariableName + " is not a Throwable");
}
buf.append(exceptionVar.generate(context));
}
return buf.toString();
}
};
writer.reset();