cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Updated: ExceptionSelector
Date Tue, 29 Jul 2008 09:23:04 GMT
A document has been updated:

Document ID: 931
Branch: main
Language: default
Name: ExceptionSelector (unchanged)
Document Type: Sitemap Component (unchanged)
Updated on: 7/29/08 9:23:02 AM
Updated by: Felix Knecht

A new version has been created, state: publish


Long description
This part has been added.
Mime type: text/xml
File name: null
Size: 1177 bytes

<p>Example configuration :</p>

<p>&lt;map:selector type="error" src="....ExceptionSelector"&gt;<br/>
  &lt;exception class="org.xml.sax.SAXException" name="sax" unroll="true"/&gt;
  &lt;exception name="not-found"
  &lt;exception class="org.apache.cocoon.ProcessingException" unroll="true"/&gt;
  &lt;exception name="denied" class=""/&gt;<br/>
  &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure"/&gt;

<p>This example shows several features :</p>

<li>the "class" is the class name of the exception (which can be any
<li>an exception can be given a name, which is used in the &amp;lt;map:when&gt;
<li>an exception can be unrolled, meaning we try to get its cause and then
consider this cause for the exception name</li>

<p>Note that both "name" and "unroll" can be specified. In that case, we first
try to unroll the exception,<br/>
and if none of the causes has a name, then the "name" attribute is considered.


View raw message