|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sourceforge.pmd.lang.ast.ParseException
net.sourceforge.pmd.lang.vm.ast.ParseException
net.sourceforge.pmd.lang.vm.ast.TemplateParseException
public class TemplateParseException
This is an extension of the ParseException, which also takes a template name.
org.apache.velocity.runtime.parser.ParseException
,
Serialized FormField Summary |
---|
Fields inherited from class net.sourceforge.pmd.lang.vm.ast.ParseException |
---|
currentToken, eol, expectedTokenSequences, tokenImage |
Constructor Summary | |
---|---|
TemplateParseException()
The following constructors are for use by you for whatever purpose you can think of. |
|
TemplateParseException(String message)
Creates a new TemplateParseException object. |
|
TemplateParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
String[] tokenImageVal)
This constructor is used by the method "generateParseException" in the generated parser. |
|
TemplateParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
String[] tokenImageVal,
String templateNameVal)
This constructor is used to add a template name to info cribbed from a ParseException generated in the parser. |
Method Summary | |
---|---|
protected void |
appendTemplateInfo(StringBuffer sb)
|
int |
getColumnNumber()
returns the column number where this exception occured. |
int |
getLineNumber()
returns the line number where this exception occured. |
String |
getMessage()
This method has the standard behavior when this object has been created using the standard constructors. |
String |
getTemplateName()
returns the Template name where this exception occured. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal, String templateNameVal)
currentTokenVal
- expectedTokenSequencesVal
- tokenImageVal
- templateNameVal
- public TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal)
currentTokenVal
- expectedTokenSequencesVal
- tokenImageVal
- public TemplateParseException()
public TemplateParseException(String message)
message
- TODO: DOCUMENT ME!Method Detail |
---|
public String getTemplateName()
public int getLineNumber()
public int getColumnNumber()
public String getMessage()
getMessage
in class Throwable
protected void appendTemplateInfo(StringBuffer sb)
sb
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |