|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
freemarker.template.TemplateException
public class TemplateException
The FM-Classic classes use this exception internally.
| Constructor Summary | |
|---|---|
TemplateException()
Constructs a TemplateException with no specified
detail message or underlying cause. |
|
TemplateException(java.lang.Exception cause)
Constructs a TemplateException with the given underlying
Exception, but no detail message. |
|
TemplateException(java.lang.String description)
Constructs a TemplateException with the given detail message,
but no underlying cause exception. |
|
TemplateException(java.lang.String description,
java.lang.Exception cause)
Constructs a TemplateException with both a description of
the error that occurred and the underlying Exception
that caused this exception to be raised. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Returns the underlying exception that caused this exception to be generated. |
java.lang.Exception |
getCauseException()
Returns the underlying exception that caused this exception to be generated. |
| 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 |
|---|
public TemplateException()
TemplateException with no specified
detail message or underlying cause.
public TemplateException(java.lang.String description)
TemplateException with the given detail message,
but no underlying cause exception.
description - the description of the error that occurredpublic TemplateException(java.lang.Exception cause)
TemplateException with the given underlying
Exception, but no detail message.
cause - the underlying Exception that caused this
exception to be raised
public TemplateException(java.lang.String description,
java.lang.Exception cause)
TemplateException with both a description of
the error that occurred and the underlying Exception
that caused this exception to be raised.
description - the description of the error that occurredcause - the underlying Exception that caused this
exception to be raised| Method Detail |
|---|
public java.lang.Exception getCauseException()
Returns the underlying exception that caused this exception to be generated.
Note:
avoided calling it getCause to avoid name clash with
JDK 1.4 method. This would be problematic because the JDK 1.4 method
returns a Throwable rather than an Exception.
Exception, if any, that caused this
exception to be raisedpublic java.lang.Throwable getCause()
Returns the underlying exception that caused this exception to be generated. This method is intended as a compatibility method for JDK 1.4 and later.
getCause in class java.lang.ThrowableThrowable, if any, that caused this
exception to be raised
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||