All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prompto.problem.IllegalPredicateProblem Maven / Gradle / Ivy

The newest version!
package prompto.problem;

import prompto.expression.IExpression;
import prompto.parser.ICodeSection;

public class IllegalPredicateProblem extends SyntaxProblemBase {

	IExpression expression;
	
	public IllegalPredicateProblem(ICodeSection section, IExpression expression) {
		super(section);
		this.expression = expression;
	}

	@Override
	public Type getType() {
		return Type.ERROR;
	}
	
	@Override
	public String getMessage() {
		return "Expected a predicate, got: " + expression.toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy