public class TemplateParseException extends ParseException implements ExtendedParseException
ParseException
,
Serialized FormcurrentToken, eol, expectedTokenSequences, specialConstructor, tokenImage
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendTemplateInfo(StringBuilder sb) |
int |
getColumnNumber()
returns the column number where this exception occurred.
|
int |
getLineNumber()
returns the line number where this exception occurred.
|
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 occurred.
|
add_escapes
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal, String templateNameVal)
currentTokenVal
- expectedTokenSequencesVal
- tokenImageVal
- templateNameVal
- public TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal)
This constructor is used by the method "generateParseException" in the generated parser. Calling this constructor generates a new object of this type with the fields "currentToken", "expectedTokenSequences", and "tokenImage" set. The boolean flag "specialConstructor" is also set to true to indicate that this constructor was used to create this object. This constructor calls its super class with the empty string to force the "toString" method of parent class "Throwable" to print the error message in the form:
ParseException: <result of getMessage>
currentTokenVal
- expectedTokenSequencesVal
- tokenImageVal
- public TemplateParseException()
public TemplateParseException(String message)
message
- TODO: DOCUMENT ME!public String getTemplateName()
getTemplateName
in interface ExtendedParseException
public int getLineNumber()
getLineNumber
in interface ExtendedParseException
public int getColumnNumber()
getColumnNumber
in interface ExtendedParseException
public String getMessage()
getMessage
in class ParseException
protected void appendTemplateInfo(StringBuilder sb)
sb
- Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.