You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2003/10/21 20:11:17 UTC

ExceptionSelector Problem: class hides its subclass

Hi Cocoon users,

I have the following problem when configuring the ExceptionSelector:

Class 'org.apache.cocoon.ProcessingException' hides its subclass 
'org.apache.cocoon.ResourceNotFoundException'

The declaration looks like:

     <map:selector logger="sitemap.selector.exception" name="exception" 
src="org.apache.cocoon.selection.ExceptionSelector">

       <exception name="sax" class="org.xml.sax.SAXException" 
unroll="true"/>

       <exception class="org.apache.cocoon.ProcessingException" 
unroll="true"/>

       <exception name="resourcenotfound" 
class="org.apache.cocoon.ResourceNotFoundException" unroll="true"/>

       <exception name="document-does-not-exist" 
class="org.apache.lenya.cms.publication.DocumentDoesNotExistException"/>

     </map:selector>

The DocumentDoesNotExistException can appear as the cause of
either the ProcessingException or the ResourceNotFoundException.
How can I change the configuration so that both of these
exceptions are unrolled?

Thanks in advance!

-- Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


[Solution] Re: ExceptionSelector Problem: class hides its subclass

Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann wrote:

> Hi Cocoon users,
> 
> I have the following problem when configuring the ExceptionSelector:
> 
[...]

> The DocumentDoesNotExistException can appear as the cause of
> either the ProcessingException or the ResourceNotFoundException.
> How can I change the configuration so that both of these
> exceptions are unrolled?

It seems to work when I declare only the ProcessingException.
I thought I tried this before posting, but obviously I did
something wrong.

-- Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org