| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.velocity.exception.VelocityException org.apache.velocity.exception.ParseErrorException
ParseErrorException | public class ParseErrorException extends VelocityException (Code) | | Application-level exception thrown when a resource of any type
has a syntax or other error which prevents it from being parsed.
When this resource is thrown, a best effort will be made to have
useful information in the exception's message. For complete
information, consult the runtime log.
author: Geir Magnusson Jr. author: Henning P. Schmiedehausen version: $Id: ParseErrorException.java 471381 2006-11-05 08:56:58Z wglass $ |
Method Summary | |
public int | getColumnNumber() Return the column number of the parsing error, or -1 if not defined. | public String | getInvalidSyntax() Return the invalid syntax or reference that triggered this error, or null
if not defined. | public int | getLineNumber() Return the line number of the parsing error, or -1 if not defined. | public String | getTemplateName() Return the name of the template containing the error, or null if not
defined. |
ParseErrorException | public ParseErrorException(String exceptionMessage)(Code) | | Create a ParseErrorException with the given message.
Parameters: exceptionMessage - the error exception message |
ParseErrorException | public ParseErrorException(ParseException pex)(Code) | | Create a ParseErrorException with the given ParseException.
Parameters: pex - the parsing exception |
ParseErrorException | public ParseErrorException(VelocityException pex)(Code) | | Create a ParseErrorException with the given ParseException.
Parameters: pex - the parsing exception |
ParseErrorException | public ParseErrorException(String exceptionMessage, Info info)(Code) | | Create a ParseErrorRuntimeException with the given message and info
Parameters: exceptionMessage - the error exception message Parameters: info - an Info object with the current template info |
ParseErrorException | public ParseErrorException(String exceptionMessage, Info info, String invalidSyntax)(Code) | | Create a ParseErrorRuntimeException with the given message and info
Parameters: exceptionMessage - the error exception message Parameters: info - an Info object with the current template info Parameters: invalidSyntax - the invalid syntax or reference triggering this exception |
getColumnNumber | public int getColumnNumber()(Code) | | Return the column number of the parsing error, or -1 if not defined.
column number of the parsing error, or -1 if not defined |
getInvalidSyntax | public String getInvalidSyntax()(Code) | | Return the invalid syntax or reference that triggered this error, or null
if not defined.
Return the invalid syntax or reference that triggered this error, or nullif not defined |
getLineNumber | public int getLineNumber()(Code) | | Return the line number of the parsing error, or -1 if not defined.
line number of the parsing error, or -1 if not defined |
getTemplateName | public String getTemplateName()(Code) | | Return the name of the template containing the error, or null if not
defined.
the name of the template containing the parsing error, or nullif not defined |
|
|