freemarker.template.compiler
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by freemarker.template.TemplateException
              extended by freemarker.template.compiler.ParseException
All Implemented Interfaces:
java.io.Serializable

public class ParseException
extends TemplateException

Exception thrown by the compiler whenever a parse exception occurs.

Version:
$Id: ParseException.java 1101 2013-04-01 04:17:32Z run2000 $
Author:
Nicholas Cull
See Also:
Serialized Form

Constructor Summary
ParseException()
          Default constructor for the ParseException.
ParseException(java.lang.Exception cause)
          Constructs a ParseException with the given underlying Exception, but no detail message.
ParseException(java.lang.String reason)
          Constructs a ParseException along with a reason for the exception.
ParseException(java.lang.String description, java.lang.Exception cause)
          Constructs a ParseException with both a description of the error that occurred and the underlying Exception that caused this exception to be raised.
 
Method Summary
 
Methods inherited from class freemarker.template.TemplateException
getCause, getCauseException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, 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

ParseException

public ParseException()
Default constructor for the ParseException.


ParseException

public ParseException(java.lang.String reason)
Constructs a ParseException along with a reason for the exception.

Parameters:
reason - the reason the exception was thrown

ParseException

public ParseException(java.lang.Exception cause)
Constructs a ParseException with the given underlying Exception, but no detail message.

Parameters:
cause - the underlying Exception that caused this exception to be raised

ParseException

public ParseException(java.lang.String description,
                      java.lang.Exception cause)
Constructs a ParseException with both a description of the error that occurred and the underlying Exception that caused this exception to be raised.

Parameters:
description - the description of the error that occurred
cause - the underlying Exception that caused this exception to be raised