ca.krasnay.scaffold
Class TemplateParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ca.krasnay.scaffold.TemplateParseException
All Implemented Interfaces:
Serializable

public class TemplateParseException
extends RuntimeException

Exception thrown by a TemplateProcessor indicating a template syntax error.

See Also:
Serialized Form

Constructor Summary
TemplateParseException(String template, int line, int column, String message)
           
 
Method Summary
 int getColumn()
          Returns the one-based column number at which the error occurred.
 int getLine()
          Returns the one-based line number at which the error occurred.
 String getMessage()
           
 String getTemplate()
          Returns the template that was in error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateParseException

public TemplateParseException(String template,
                              int line,
                              int column,
                              String message)
Method Detail

getTemplate

public String getTemplate()
Returns the template that was in error.


getLine

public int getLine()
Returns the one-based line number at which the error occurred.


getColumn

public int getColumn()
Returns the one-based column number at which the error occurred.


getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2015. All rights reserved.