freemarker-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Kam <moonblade.w...@gmail.com>
Subject Rethrow error after recover block ?
Date Sat, 21 May 2016 13:00:32 GMT
Hi,

My intention is to print out some values upon <#recover> block, and
rethrow the error without continuing the processes.

<#macro xxx>

<#attempt>
    <#-- main() -->
<#recover>
    <#-- print out messages here -->
    <#-- rethrow error, ***how to do this *** -->
</#attempt>
<#-- so that we dont continue processing the lines here -->

</#macro>

Thank you !

-- 
Do not pursue the past. Do not lose yourself in the future.
The past no longer is. The future has not yet come.
Looking deeply at life as it is in the very here and now,
the practitioner dwells in stability and freedom.
(Thich Nhat Hanh)

Mime
View raw message