Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

freemarker.testcase.models
Class ExceptionModel  view ExceptionModel download ExceptionModel.java

java.lang.Object
  extended byfreemarker.testcase.models.ExceptionModel
All Implemented Interfaces:
freemarker.template.TemplateModel, freemarker.template.TemplateScalarModel

public class ExceptionModel
extends java.lang.Object
implements freemarker.template.TemplateScalarModel

A template that always throws an exception whenever we call getAsString()

Version:
$Id: ExceptionModel.java,v 1.13 2003/01/12 23:40:25 revusky Exp $

Field Summary
 
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ExceptionModel()
           
 
Method Summary
 java.lang.String getAsString()
          Returns the scalar's value as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionModel

public ExceptionModel()
Method Detail

getAsString

public java.lang.String getAsString()
                             throws freemarker.template.TemplateModelException
Returns the scalar's value as a String.

Specified by:
getAsString in interface freemarker.template.TemplateScalarModel