org.apache.velocity.exception
public class ParseErrorException extends VelocityException
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(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 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.
|
getWrappedThrowable
public 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
in class java.lang.Throwable
Copyright © 2000-2014. All Rights Reserved.