org.liquidsite.app.template
Class TemplateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.liquidsite.app.template.TemplateException
All Implemented Interfaces:
java.io.Serializable

public class TemplateException
extends java.lang.Exception

A template processing exception. This is thrown when a template couldn't be read or processed correctly.

See Also:
Serialized Form

Constructor Summary
TemplateException(java.lang.Exception cause)
          Creates a new template exception.
TemplateException(java.lang.String message)
          Creates a new template exception.
TemplateException(java.lang.String message, java.lang.Exception cause)
          Creates a new template exception.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the root exception cause.
 java.lang.String getMessage()
          Returns the detailed error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

TemplateException

public TemplateException(java.lang.String message)
Creates a new template exception.

Parameters:
message - the error message

TemplateException

public TemplateException(java.lang.Exception cause)
Creates a new template exception.

Parameters:
cause - the root cause to the error

TemplateException

public TemplateException(java.lang.String message,
                         java.lang.Exception cause)
Creates a new template exception.

Parameters:
message - the error message
cause - the root cause to the error
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detailed error message. This error message will include any messages from the root errors.

Returns:
the detailed error message

getCause

public java.lang.Throwable getCause()
Returns the root exception cause.

Returns:
the root exception cause, or null for none