[stringtemplate-interest] which ST errors are serious
Terence Parr
parrt at cs.usfca.edu
Mon Nov 30 17:33:22 PST 2009
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.
Ter
On Nov 30, 2009, at 5:31 PM, John D. Mitchell wrote:
>
> On Nov 30, 2009, at 17:26 , Terence Parr wrote:
>
>> cool. so instead of just emitting an error, you want it to actually throw an exception that terminates ST the evaluation or are you just saying let's make a PENDANTIC value that make sure an error is emitted for everything?
>
> Yes.
>
> I.e., both but I think "STRICT" is a better term to use. Non-language people are clueless. :-)
>
>> I think you are saying we need a way to get the programmers attention beyond emitting an error message. I think the only way to escalate though is to throw an exception and blast out of the interpreter back to the webpage servlet or whatever.
>
> Yes, there needs to be a real exception thrown.
>
> Sorry for the extra hassle but I can show you some xslt templating crap that would make you cry and so it's clear that people will abuse and ignore things to a degree that destroys systems.
>
> Rock on,
> John
>
More information about the stringtemplate-interest
mailing list