cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: ExceptionSelector
Date Tue, 29 Jul 2008 09:24:00 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/931.html

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

Parts
=====

Long description
----------------
This part has been added.
Mime type: text/xml
File name: null
Size: 1177 bytes
Content:
<html>
<body>

<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;
<br/>
  &lt;exception name="not-found"
class="org.apache.cocoon.ResourceNotFoundException"/&gt;<br/>
  &lt;exception class="org.apache.cocoon.ProcessingException" unroll="true"/&gt;
<br/>
  &lt;exception name="denied" class="java.security.SecurityException"/&gt;<br/>
  &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure"/&gt;
<br/>
&lt;/map:selector&gt;</p>

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

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

<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.
</p>

</body>
</html>


Mime
View raw message