cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Maddy <>
Subject How to catch an InvalidContinuationException?
Date Tue, 07 Mar 2006 18:06:33 GMT
Has anyone successfully been able to catch an 
InvalidContinuationException?  I've basically copied exactly what is 
described here:
but Cocoon still uses the default handling of an exception (showing the 
stacktrace and such).  I believe it's the one defined in the root 
sitemap.  Has anyone else run into this or figured it out?

In my map:components section:
    <map:selector name="exception" 
      <exception name="invalid-continuation"
      <exception class="java.lang.Throwable" unroll="true"/>

At the end of my pipeline:
            <map:match pattern="public/continue-form">
continuation="{request-param:continuation-id}"/>     <!-- exception 
occurs here -->
      <map:select type="exception">
        <map:when test="invalid-continuation">
                <map:generate type="request"/>
                <map:serialize type="xml"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message