1 2 3 4 5 6 7 8
package ch.bfh.parser; import ch.bfh.lexer.Token; public class ParserException extends RuntimeException { public ParserException(String s) { super(s); } public ParserException(Token token, String s) { super("Last read token: '"+token.str+"', "+s); } }