org.webmacro
Class TemplateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.webmacro.RethrowableException
                    |
                    +--org.webmacro.WebMacroException
                          |
                          +--org.webmacro.TemplateException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BuildException, ParseException

public class TemplateException
extends WebMacroException

Exception raised on discovery of a parsing error. To facilitate error recovery, you can extract the parseTool from this error.

See Also:
Serialized Form

Constructor Summary
TemplateException()
           
TemplateException(java.lang.String reason)
          Create a new exception
TemplateException(java.lang.String reason, java.lang.Throwable e)
          Create a new exception, wrapping another exception
 
Methods inherited from class org.webmacro.RethrowableException
getCaught, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateException

public TemplateException()

TemplateException

public TemplateException(java.lang.String reason)
Create a new exception
Parameters:
reason - what went wrong

TemplateException

public TemplateException(java.lang.String reason,
                         java.lang.Throwable e)
Create a new exception, wrapping another exception
Parameters:
reason - what went wrong
e - The exception that caused us to raise this exception