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 int line; 14 private String ruleName; 15 16 /** 17 * @param line 18 * @param ruleName 19 */ 20 public SyntaxErrorException(int line, String ruleName) { 21 super(); 22 this.line = line; 23 this.ruleName = ruleName; 24 } 25 26 /** 27 * @return Returns the line. 28 */ 29 public int getLine() { 30 return line; 31 } 32 33 /** 34 * @return Returns the ruleName. 35 */ 36 public String getRuleName() { 37 return ruleName; 38 } 39 }