public class ParseErrorException extends VelocityException
| 构造器和说明 |
|---|
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(VelocityException pex,
java.lang.String templName)
Create a ParseErrorException with the given ParseException.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 custum 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.
|
getWrappedThrowablepublic ParseErrorException(java.lang.String exceptionMessage)
exceptionMessage - the error exception messagepublic ParseErrorException(ParseException pex, java.lang.String templName)
pex - the parsing exceptionpublic ParseErrorException(VelocityException pex, java.lang.String templName)
pex - the parsing exceptionpublic 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 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 在类中 java.lang.Throwable