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><map:selector type="error" src="....ExceptionSelector"><br/> <exception class="org.xml.sax.SAXException" name="sax" unroll="true"/> <br/> <exception name="not-found" class="org.apache.cocoon.ResourceNotFoundException"/><br/> <exception class="org.apache.cocoon.ProcessingException" unroll="true"/> <br/> <exception name="denied" class="java.security.SecurityException"/><br/> <exception name="denied" class="my.comp.auth.AuthenticationFailure"/> <br/> </map:selector></p> <p>This example shows several features :</p> <ul> <li>the "class" is the class name of the exception (which can be any <code>Throwable</code>),</li> <li>an exception can be given a name, which is used in the &lt;map:when> 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>