Ivan Lagunov
2013-04-17 15:35:38 UTC
Hello,
Is it possible to access fields of the thrown Exception inside
map:handle-errors?
I want to do something like this:
<map:handle-errors>
<map:select type="exception">
<map:when test="processing">
<map:generate src="page/exception.jx" type="jx">
<map:parameter name="errorMessage" value="want to extract
Exception.getMessage() here"/>
</map:generate>
<map:serialize type="xhtml"/>
</map:when>
</map:select>
</map:handle-errors>
Where selector is defined as following:
<map:selector name="exception"
src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="processing"
class="org.apache.cocoon.ProcessingException"/>
</map:selector>
Any ideas how to achieve this?
Best regards,
Ivan Lagunov
Is it possible to access fields of the thrown Exception inside
map:handle-errors?
I want to do something like this:
<map:handle-errors>
<map:select type="exception">
<map:when test="processing">
<map:generate src="page/exception.jx" type="jx">
<map:parameter name="errorMessage" value="want to extract
Exception.getMessage() here"/>
</map:generate>
<map:serialize type="xhtml"/>
</map:when>
</map:select>
</map:handle-errors>
Where selector is defined as following:
<map:selector name="exception"
src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="processing"
class="org.apache.cocoon.ProcessingException"/>
</map:selector>
Any ideas how to achieve this?
Best regards,
Ivan Lagunov