Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 40672 invoked from network); 26 Mar 2009 16:28:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 16:28:07 -0000 Received: (qmail 22597 invoked by uid 500); 26 Mar 2009 15:03:02 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 22550 invoked by uid 500); 26 Mar 2009 15:03:02 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 22264 invoked by uid 99); 26 Mar 2009 15:02:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 15:02:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.67] (HELO cocoon.zones.apache.org) (140.211.11.67) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 15:02:54 +0000 Received: from cocoon.zones.apache.org (localhost [127.0.0.1]) by cocoon.zones.apache.org (8.13.8+Sun/8.13.8) with ESMTP id n2QF2XX0006283 for ; Thu, 26 Mar 2009 15:02:33 GMT Message-ID: <17901302.1238079753493.JavaMail.daisy@cocoon.zones.apache.org> Date: Thu, 26 Mar 2009 15:02:33 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: ExceptionSelector Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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: 11/24/08 12:53:54 PM Updated by: Felix Knecht A new version has been created, state: publish Parts =3D=3D=3D=3D=3D Long description ---------------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 1384 bytes (previous version: 1177 bytes) Content diff: (2 equal lines skipped) =20

Example configuration :

=20 ---

<map:selector type=3D"error" src=3D"....ExceptionSelector"> --- =C2=A0 <exception class=3D"org.xml.sax.SAXException" name=3D"sax" un= roll=3D"true"/> ---
--- =C2=A0 <exception name=3D"not-found" +++

<map:components>
+++ =C2=A0 <map:selectors>
+++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ...
+++ =C2=A0=C2=A0=C2=A0 <map:selector name=3D"error" +++ src=3D"org.apache.cocoon.selection.ExceptionSelector">
+++ =C2=A0 =C2=A0 =C2=A0 <exception class=3D"org.xml.sax.SAXException" n= ame=3D"sax" +++ unroll=3D"true"/>
+++ =C2=A0 =C2=A0 =C2=A0 <exception name=3D"not-found" class=3D"org.apache.cocoon.ResourceNotFoundException"/>
--- =C2=A0 <exception class=3D"org.apache.cocoon.ProcessingException" un= roll=3D"true"/> +++ =C2=A0 =C2=A0 =C2=A0 <exception class=3D"org.apache.cocoon.Processin= gException" +++ unroll=3D"true"/>
+++ =C2=A0 =C2=A0 =C2=A0 <exception name=3D"denied" class=3D"java.securi= ty.SecurityException"/>
--- =C2=A0 <exception name=3D"denied" class=3D"java.security.SecurityExc= eption"/>
--- =C2=A0 <exception name=3D"denied" class=3D"my.comp.auth.Authenticati= onFailure"/> ---
--- </map:selector>

+++ =C2=A0 =C2=A0 =C2=A0 <exception name=3D"denied" +++ class=3D"my.comp.auth.AuthenticationFailure"/>
+++ =C2=A0=C2=A0=C2=A0 </map:selector>
+++ =C2=A0 </map:selectors>
+++ </map:components>

=20

This example shows several features :

=20 (16 equal lines skipped)