01 /*
02 * Created on 11-jan-2006
03 */
04 package net.sourceforge.pmd.lang.jsp.ast;
05
06 /**
07 * @author Pieter_Van_Raemdonck
08 * Exception indicating that a syntactic error has been found.
09 */
10 public abstract class SyntaxErrorException extends ParseException {
11 private int line;
12 private String ruleName;
13
14 /**
15 * @param line
16 * @param ruleName
17 */
18 public SyntaxErrorException(int line, String ruleName) {
19 super();
20 this.line = line;
21 this.ruleName = ruleName;
22 }
23
24 /**
25 * @return Returns the line.
26 */
27 public int getLine() {
28 return line;
29 }
30
31 /**
32 * @return Returns the ruleName.
33 */
34 public String getRuleName() {
35 return ruleName;
36 }
37 }
|