[DAISY] Updated: ExceptionSelector

[email protected]
Newsgroups gmane.text.xml.cocoon.documentation
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.