[stringtemplate-interest] which ST errors are serious

Terence Parr parrt at cs.usfca.edu
Mon Nov 30 21:05:07 PST 2009


On Nov 30, 2009, at 5:38 PM, John D. Mitchell wrote:

>
> On Nov 30, 2009, at 17:33 , Terence Parr wrote:
>
>> Ok, that's easy. I just throw a STException, in order to puke  
>> violently. It's currently an unchecked runtime exception so it  
>> would blast out completely from ST land back to your world.
>
> You just going to payload in a code (plus human readable message) or  
> something that matches your enum so that we know what the cause was?

Hmm...perhaps erase hard drive too ;)

Yeah, I guess english plus some parameters maybe.

If you have debug on, it will tell you where in the template it was  
executing and could even tell you where the offending attribute was  
set in your source code. oh, and it could tell you where you created  
the ST instance in your source too. :)

Ter


More information about the stringtemplate-interest mailing list