blob: 7753ba06301b65f7b424859e40180e920824a6a5 [file] [log] [blame]
package org.codehaus.groovy.syntax;
public class TokenMismatchException extends TokenException {
private Token unexpectedToken;
private int expectedType;
public TokenMismatchException(Token token, int expectedType) {
super("Expected token: " + expectedType + " but found: " + token, token);
this.unexpectedToken = token;
this.expectedType = expectedType;
}
public Token getUnexpectedToken() {
return this.unexpectedToken;
}
public int getExpectedType() {
return this.expectedType;
}
}