package com.klq.typechecker.error; import com.klq.ast.impl.stmt.QuestionNode; import com.klq.ast.impl.Type; /** * Created by juriaan on 2-3-15. */ public class TypeMismatch extends AError { public TypeMismatch(QuestionNode node, Type child) { super(4, true, String.format("This question is of the type: %s, however the computed answer is of the type: %s", node.getType(), child), node.getLocation()); } }