public class ParseErrorException extends VelocityException
Modifier and Type | Field and Description |
---|---|
private int |
columnNumber
The column number of the parsing error, or -1 if not defined.
|
private java.lang.String |
invalidSyntax
If applicable, contains the invalid syntax or reference that triggered this exception
|
private static java.util.regex.Pattern |
lexError |
private int |
lineNumber
The line number of the parsing error, or -1 if not defined.
|
private java.lang.String |
msg
If we modify the message, then we set this
|
private static long |
serialVersionUID
Version Id for serializable
|
private java.lang.String |
templateName
The name of the template containing the error, or null if not defined.
|
Constructor and Description |
---|
ParseErrorException(ParseException pex,
java.lang.String templName)
Create a ParseErrorException with the given ParseException.
|
ParseErrorException(java.lang.String exceptionMessage)
Create a ParseErrorException with the given message.
|
ParseErrorException(java.lang.String exceptionMessage,
Info info)
Create a ParseErrorRuntimeException with the given message and info
|
ParseErrorException(java.lang.String exceptionMessage,
Info info,
java.lang.String invalidSyntax)
Create a ParseErrorRuntimeException with the given message and info
|
ParseErrorException(java.lang.String exceptionMessage,
Info info,
java.lang.String[] stacktrace)
Create a ParseErrorRuntimeException with the given message and info
|
ParseErrorException(VelocityException pex,
java.lang.String templName)
Create a ParseErrorException with the given ParseException.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Return the column number of the parsing error, or -1 if not defined.
|
java.lang.String |
getInvalidSyntax()
Return the invalid syntax or reference that triggered this error, or null
if not defined.
|
int |
getLineNumber()
Return the line number of the parsing error, or -1 if not defined.
|
java.lang.String |
getMessage()
Return our custom message if we have one, else return the default message
|
java.lang.String |
getTemplateName()
Return the name of the template containing the error, or null if not
defined.
|
getVtlStackTrace, getWrappedThrowable
private static final long serialVersionUID
private int columnNumber
private int lineNumber
private java.lang.String templateName
private java.lang.String invalidSyntax
private java.lang.String msg
private static final java.util.regex.Pattern lexError
public ParseErrorException(java.lang.String exceptionMessage)
exceptionMessage
- the error exception messagepublic ParseErrorException(ParseException pex, java.lang.String templName)
pex
- the parsing exceptiontemplName
- public ParseErrorException(VelocityException pex, java.lang.String templName)
pex
- the parsing exceptiontemplName
- public ParseErrorException(java.lang.String exceptionMessage, Info info)
exceptionMessage
- the error exception messageinfo
- an Info object with the current template infopublic ParseErrorException(java.lang.String exceptionMessage, Info info, java.lang.String[] stacktrace)
exceptionMessage
- the error exception messageinfo
- an Info object with the current template infopublic ParseErrorException(java.lang.String exceptionMessage, Info info, java.lang.String invalidSyntax)
exceptionMessage
- the error exception messageinfo
- an Info object with the current template infoinvalidSyntax
- the invalid syntax or reference triggering this exceptionpublic int getColumnNumber()
public int getLineNumber()
public java.lang.String getTemplateName()
public java.lang.String getInvalidSyntax()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable