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); } }