(Token t)
| 9 | super("syntax error around " + location(t) + ". " + msg); |
| 10 | } |
| 11 | private static String location(Token t) { |
| 12 | if (t == Token.EOF) |
| 13 | return "the last line"; |
| 14 | else |
| 15 | return "\"" + t.getText() + "\" at line " + t.getLineNumber(); |
| 16 | } |
| 17 | public ParseException(IOException e) { |
| 18 | super(e); |
| 19 | } |
no test coverage detected