« Return to Thread: How can I signal an error from a velocity template?

How can I signal an error from a velocity template?

by Ittay Dror :: Rate this Message:

Reply to Author | View in Thread

I want to write a template that generates different outputs based on a
property value. say the value can be "A" or "B". Now, if the user passes
something else, I want to signal an error. so my template looks something
like:
# if...
.....
#elseif
....
#else
// throw an exception? how?
#end

Thank you,
Ittay

 « Return to Thread: How can I signal an error from a velocity template?

LightInTheBox - Buy quality products at wholesale price