org.klojang.templates.ParseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of klojang-templates Show documentation
Show all versions of klojang-templates Show documentation
Zero-Logic Templates for Java Programmers
The newest version!
package org.klojang.templates;
/**
* Thrown if the template source could not be parsed into a {@link Template}.
*
* @author Ayco Holleman
*/
public final class ParseException extends Exception {
private final ParseErrorCode error;
ParseException(ParseErrorCode error, String message) {
super(message);
this.error = error;
}
/**
* Returns a {@link ParseErrorCode} constant identifying the error.
*
* @return a {@code ParseError} constant identifying the error.
*/
public ParseErrorCode getErrorCode() {
return error;
}
}