You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@apache.org on 2001/04/16 18:04:46 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon/sitemap Handler.java Manager.java

dims        01/04/16 09:04:45

  Modified:    src/org/apache/cocoon/sitemap Tag: xml-cocoon2 Handler.java
                        Manager.java
  Log:
  Display Sitemap compilation errors on screen. (without needing to dig into cocoon.log)
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.24  +5 -1      xml-cocoon/src/org/apache/cocoon/sitemap/Attic/Handler.java
  
  Index: Handler.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/Handler.java,v
  retrieving revision 1.1.2.23
  retrieving revision 1.1.2.24
  diff -u -r1.1.2.23 -r1.1.2.24
  --- Handler.java	2001/04/13 16:02:25	1.1.2.23
  +++ Handler.java	2001/04/16 16:04:43	1.1.2.24
  @@ -43,7 +43,7 @@
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.1.2.23 $ $Date: 2001/04/13 16:02:25 $
  + * @version CVS $Revision: 1.1.2.24 $ $Date: 2001/04/16 16:04:43 $
    */
   public class Handler extends AbstractLoggable implements Runnable, Configurable, Composer, Contextualizable, Processor, Disposable {
       private Context context;
  @@ -217,6 +217,10 @@
   
       public void throwEventualException() throws Exception {
           if (this.exception != null) throw this.exception;
  +    }
  +
  +    public Exception getException() {
  +        return this.exception;
       }
   
       /**
  
  
  
  1.1.2.13  +2 -2      xml-cocoon/src/org/apache/cocoon/sitemap/Attic/Manager.java
  
  Index: Manager.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/Manager.java,v
  retrieving revision 1.1.2.12
  retrieving revision 1.1.2.13
  diff -u -r1.1.2.12 -r1.1.2.13
  --- Manager.java	2001/04/12 16:00:58	1.1.2.12
  +++ Manager.java	2001/04/16 16:04:44	1.1.2.13
  @@ -38,7 +38,7 @@
    * checking regeneration of the sub <code>Sitemap</code>
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1.2.12 $ $Date: 2001/04/12 16:00:58 $
  + * @version CVS $Revision: 1.1.2.13 $ $Date: 2001/04/16 16:04:44 $
    */
   public class Manager extends AbstractLoggable implements Configurable, Composer, Contextualizable {
   
  @@ -174,6 +174,6 @@
               throws Exception {
           environment.changeContext(uri_prefix, source);
           if (! sitemapHandler.available())
  -            throw new ProcessingException("The sitemap handler's sitemap is not available.");
  +            throw new ProcessingException("The sitemap handler's sitemap is not available.", sitemapHandler.getException());
       }
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org