freemarker.testcase.models

Class ExceptionModel

Implemented Interfaces:
TemplateModel, TemplateScalarModel

public class ExceptionModel
extends java.lang.Object
implements 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 $

Fields inherited from interface freemarker.template.TemplateModel

NOTHING

Fields inherited from interface freemarker.template.TemplateScalarModel

EMPTY_STRING

Method Summary

String
getAsString()
Returns the scalar's value as a String.

Method Details

getAsString

public String getAsString()
            throws TemplateModelException
Returns the scalar's value as a String.
Specified by:
getAsString in interface TemplateScalarModel
Returns:
the String value of this scalar.