public class ParseErrorException extends VelocityException
Constructor and Description |
---|
ParseErrorException(ParseException pex,
String templName)
Create a ParseErrorException with the given ParseException.
|
ParseErrorException(String exceptionMessage)
Create a ParseErrorException with the given message.
|
ParseErrorException(String exceptionMessage,
Info info)
Create a ParseErrorRuntimeException with the given message and info
|
ParseErrorException(String exceptionMessage,
Info info,
String invalidSyntax)
Create a ParseErrorRuntimeException with the given message and info
|
ParseErrorException(VelocityException pex,
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.
|
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.
|
String |
getMessage()
Return our custom message if we have one, else return the default message
|
String |
getTemplateName()
Return the name of the template containing the error, or null if not
defined.
|
getWrappedThrowable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseErrorException(String exceptionMessage)
exceptionMessage
- the error exception messagepublic ParseErrorException(ParseException pex, String templName)
pex
- the parsing exceptiontemplName
- public ParseErrorException(VelocityException pex, String templName)
pex
- the parsing exceptiontemplName
- public ParseErrorException(String exceptionMessage, Info info)
exceptionMessage
- the error exception messageinfo
- an Info object with the current template infopublic ParseErrorException(String exceptionMessage, Info info, 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 String getTemplateName()
public String getInvalidSyntax()
public String getMessage()
getMessage
in class Throwable
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.