freemarker.core

Class NonStringException


public class NonStringException
extends TemplateException

A subclass of TemplateException that indicates that the internals expected an expression to evaluate to a string or numeric value and it didn't.
Author:
Attila Szegedi

Constructor Summary

NonStringException(String description, Environment env)
Constructs a TemplateException with the given detail message, but no underlying cause exception.
NonStringException(Environment env)
Constructs a TemplateException with no specified detail message or underlying cause.

Method Summary

Methods inherited from class freemarker.template.TemplateException

getCause, getCauseException, getEnvironment, getFTLInstructionStack, printStackTrace, printStackTrace

Constructor Details

NonStringException

public NonStringException(String description,
                          Environment env)
Constructs a TemplateException with the given detail message, but no underlying cause exception.
Parameters:
description - the description of the error that occurred

NonStringException

public NonStringException(Environment env)
Constructs a TemplateException with no specified detail message or underlying cause.