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

prompto.problem.MissingAttributeProblem Maven / Gradle / Ivy

The newest version!
package prompto.problem;

import prompto.parser.ICodeSection;

public class MissingAttributeProblem extends SyntaxProblemBase {

	String actual;
	
	public MissingAttributeProblem(ICodeSection section, String actual) {
		super(section);
		this.actual = actual;
	}

	@Override
	public Type getType() {
		return Type.ERROR;
	}
	
	@Override
	public String getMessage() {
		return "Expected an attribute, found: " + actual;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy