View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.jsp.ast;
5   
6   /**
7    * Exception indicating that a syntactic error has been found.
8    * 
9    * @author Pieter_Van_Raemdonck
10   * @since Created on 11-jan-2006
11   */
12  public abstract class SyntaxErrorException extends ParseException {
13      private static final long serialVersionUID = -6702683724078264059L;
14  
15      private int line;
16      private String ruleName;
17  
18      /**
19       * @param line
20       * @param ruleName
21       */
22      public SyntaxErrorException(int line, String ruleName) {
23          super();
24          this.line = line;
25          this.ruleName = ruleName;
26      }
27  
28      /**
29       * @return Returns the line.
30       */
31      public int getLine() {
32          return line;
33      }
34  
35      /**
36       * @return Returns the ruleName.
37       */
38      public String getRuleName() {
39          return ruleName;
40      }
41  }