|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.velocity.runtime.parser.ParseException
org.apache.velocity.runtime.parser.TemplateParseException
This is an extension of the ParseException, which also takes a template name.
ParseException,
Serialized Form| Field Summary |
| Fields inherited from class org.apache.velocity.runtime.parser.ParseException |
currentToken, eol, expectedTokenSequences, specialConstructor, 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 org.apache.velocity.runtime.parser.ParseException |
add_escapes |
| 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()
getTemplateName in interface ExtendedParseExceptionpublic int getLineNumber()
getLineNumber in interface ExtendedParseExceptionpublic int getColumnNumber()
getColumnNumber in interface ExtendedParseExceptionpublic String getMessage()
getMessage in class ParseExceptionprotected void appendTemplateInfo(StringBuffer sb)
sb -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||