cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oceatoon <t.katelb...@systheo.com>
Subject Error Handling : what are Cocoons exceptions ?
Date Tue, 17 May 2005 16:49:27 GMT
Hi every one 

I have these exceptions declared in my selectors

<exception class="....ResourceNotFoundException" name="not-found"/>
<exception class="....InvalidContinuationException"
name="invalid-continuation"/>

 <exception class="java.lang.Throwable" unroll="true"/>

All these errors are well handled by the error-handler but when an XSL error
occurs I still get the error and not my handle error page??

are there any other selectors to be added?
Do I have to declare other exception Selectors?

Thanks 
Tibor

*****************************
my error- handler

<map:handle-errors>
<map:select type="exception">
<map:when test="not-found">
<map:generate type="jx" src="public/error.xml">
<map:parameter name="type" value="error_resourcenotfound"/>
<map:parameter name="cpath" value="{request:contextPath}"/>
</map:generate>
<map:call resource="xslt_i18n_xhtml"/>
</map:when>
<map:when test="invalid-continuation">
<map:generate type="jx" src="public/error.xml">
<map:parameter name="type" value="error_invalidContinuation"/>
<map:parameter name="cpath" value="{request:contextPath}"/>
</map:generate>
<map:call resource="xslt_i18n_xhtml"/>
</map:when>
<map:otherwise>
<map:generate type="jx" src="public/error.xml">
<map:parameter name="type" value="error_unknown"/>
<map:parameter name="cpath" value="{request:contextPath}"/>
</map:generate>
<map:call resource="xslt_i18n_xhtml"/>
</map:otherwise>
</map:select>
</map:handle-errors>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message