[stringtemplate-interest] Attribute not found exception?

Terence Parr parrt at cs.usfca.edu
Tue Mar 28 08:20:33 PST 2006


On Mar 28, 2006, at 2:46 AM, Kunle Odutola wrote:

>
>> Hello,
>>
>> First of all let me say thank you for this nice peace of software!
>>
>> Is it a deliberate design decision not throw an Exception when
>> an attribute is not found? (ST#)
>
> Yes. If a referenced attribute is not found, the attribute expression
> evaluates to an empty string.

Unless you use the group file format in which case you do get an  
exception because you can define attributes (parameters).

Ter



More information about the stringtemplate-interest mailing list