Package org.apache.velocity.exception
Class TemplateInitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.velocity.exception.VelocityException
-
- org.apache.velocity.exception.TemplateInitException
-
- All Implemented Interfaces:
java.io.Serializable,ExtendedParseException
public class TemplateInitException extends VelocityException implements ExtendedParseException
Exception generated to indicate parse errors caught during directive initialization (e.g. wrong number of arguments)- Since:
- 1.5
- Version:
- $Id: TemplateInitException.java 685685 2008-08-13 21:43:27Z nbubna $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intcolprivate intlineprivate static longserialVersionUIDVersion Id for serializableprivate java.lang.StringtemplateName
-
Constructor Summary
Constructors Constructor Description TemplateInitException(java.lang.String msg, java.lang.String templateName, int col, int line)TemplateInitException(java.lang.String msg, ParseException parseException, java.lang.String templateName, int col, int line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNumber()Returns the column number where this exception occured.intgetLineNumber()Returns the line number where this exception occured.java.lang.StringgetTemplateName()Returns the Template name where this exception occured.-
Methods inherited from class org.apache.velocity.exception.VelocityException
getWrappedThrowable
-
-
-
-
Field Detail
-
templateName
private final java.lang.String templateName
-
col
private final int col
-
line
private final int line
-
serialVersionUID
private static final long serialVersionUID
Version Id for serializable- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TemplateInitException
public TemplateInitException(java.lang.String msg, java.lang.String templateName, int col, int line)
-
TemplateInitException
public TemplateInitException(java.lang.String msg, ParseException parseException, java.lang.String templateName, int col, int line)
-
-
Method Detail
-
getTemplateName
public java.lang.String getTemplateName()
Returns the Template name where this exception occured.- Specified by:
getTemplateNamein interfaceExtendedParseException- Returns:
- the template name
-
getLineNumber
public int getLineNumber()
Returns the line number where this exception occured.- Specified by:
getLineNumberin interfaceExtendedParseException- Returns:
- the line number
-
getColumnNumber
public int getColumnNumber()
Returns the column number where this exception occured.- Specified by:
getColumnNumberin interfaceExtendedParseException- Returns:
- the line number
-
-