lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya usecase.xmap
Date Mon, 18 Aug 2003 13:18:05 GMT
egli        2003/08/18 06:18:05

  Modified:    src/webapp/lenya usecase.xmap
  Log:
  ResourceNotFoundException should not occur and hence should
  not be caught.
  
  Revision  Changes    Path
  1.65      +6 -1      cocoon-lenya/src/webapp/lenya/usecase.xmap
  
  Index: usecase.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/usecase.xmap,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- usecase.xmap	18 Aug 2003 09:26:08 -0000	1.64
  +++ usecase.xmap	18 Aug 2003 13:18:05 -0000	1.65
  @@ -17,7 +17,8 @@
         <map:selector logger="sitemap.selector.exception" name="exception" src="org.apache.cocoon.selection.ExceptionSelector">
           <exception class="org.apache.lenya.cms.task.ExecutionException" name="execution"
unroll="true"/>
           <exception class="org.apache.tools.ant.BuildException" name="build" unroll="true"/>
  -        <exception class="org.xml.sax.SAXException" name="sax"/>
  +        <exception class="org.xml.sax.SAXException" name="sax" unroll="true"/>
  +        <exception class="org.apache.cocoon.ResourceNotFoundException" name="resourcenotfound"/>
           <exception class="org.apache.lenya.cms.publishing.ParentNodeNotFoundException"
   	  name="parent-node-not-found"/>
   <!--         <exception class="org.apache.lenya.cms.publishing.PublishingException"
name="publishing"/> -->
  @@ -796,6 +797,10 @@
   	    <map:transform src="xslt/exception/parent_node_not_found.xsl"/>
   	    <map:call resource="style-cms-page"/>
             </map:when>
  +	  <map:when test="resourcenotfound">
  +	    <map:transform src="xslt/exception/not_published_yet.xsl"/>
  +	    <map:call resource="style-cms-page"/>
  +	  </map:when>
   	  <map:when test="sax">
   	    <map:transform src="xslt/exception/not_published_yet.xsl"/>
   	    <map:call resource="style-cms-page"/>
  
  
  

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


Mime
View raw message