|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.testcase.models.ExceptionModel
public final class ExceptionModel
A template that always throws an exception whenever we call getAsString().
| Constructor Summary | |
|---|---|
ExceptionModel()
Creates new ExceptionModel. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAsString()
Returns the scalar's value as a String. |
boolean |
isEmpty()
Is the model empty? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionModel()
| Method Detail |
|---|
public java.lang.String getAsString()
throws TemplateModelException
String.
getAsString in interface TemplateScalarModelString value of this scalar.
TemplateModelException - something went wrong retrieving the value
public boolean isEmpty()
throws TemplateModelException
isEmpty in interface TemplateModelfalse to indicate the model is not empty
TemplateModelException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||