You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2004/02/11 17:04:14 UTC
Error Handling exception
I need more explanation about the exception.
in this page :
http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html
There is this example which interested but it's not working because
class="SAXException" does not exists.
<map:selector name="exception"
src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="processing" class="ProcessingException"
unroll="true"/>
<exception name="sax" class="SAXException"/>
<exception name="application" class="ApplicationException"/>
</map:selector>
...
<map:pipeline>
<map:match pattern="resource">
...
</map:match>
<map:handle-errors>
<map:select type="exception">
<map:when test="processing">...</map:when>
<map:when test="sax">...</map:when>
<map:when test="application">...</map:when>
</map:select>
</map:handle-errors>
</map:pipeline>
I'm interesting in catching the SAXException, has someone already done that ?
Thanks a lot.
Lionel
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Error Handling exception
Posted by Lionel Crine <cr...@4dconcept.fr>.
It's not working.
At 08:18 11/02/2004 -0800, you wrote:
>On Feb 11, 2004, at 8:04 AM, Lionel Crine wrote:
>
>>I need more explanation about the exception.
>>
>>in this page :
>>http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html
>>
>>There is this example which interested but it's not working because
>>class="SAXException" does not exists.
>>
>>
>><map:selector name="exception"
>>src="org.apache.cocoon.selection.ExceptionSelector">
>> <exception name="processing" class="ProcessingException"
>> unroll="true"/>
>> <exception name="sax" class="SAXException"/>
>
>Try "org.xml.sax.SAXException"
>
>~ml
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Error Handling exception
Posted by Mark Lundquist <ml...@wrinkledog.com>.
On Feb 11, 2004, at 8:04 AM, Lionel Crine wrote:
> I need more explanation about the exception.
>
> in this page :
> http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html
>
> There is this example which interested but it's not working because
> class="SAXException" does not exists.
>
>
> <map:selector name="exception"
> src="org.apache.cocoon.selection.ExceptionSelector">
> <exception name="processing" class="ProcessingException"
> unroll="true"/>
> <exception name="sax" class="SAXException"/>
Try "org.xml.sax.SAXException"
~ml
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org