1 package org.simantics.spreadsheet.solver.formula;
3 import org.simantics.spreadsheet.solver.formula.parser.ast.AstArgList;
5 public class IsErrorFormulaFunction implements CellFormulaFunction<Object>{
8 public Object evaluate(CellValueVisitor visitor, AstArgList args) {
10 if (args.values.size() != 1) throw new IllegalStateException();
12 Object condition = args.values.get(0).accept(visitor);
13 if(condition instanceof String){
14 FormulaError2 error = FormulaError2.forString((String)condition);