vgritsenko    01/07/02 13:54:20

  Modified:    src/org/apache/cocoon/generation Tag: cocoon_20_branch
                        ServerPagesGenerator.java
               src/org/apache/cocoon/sitemap Tag: cocoon_20_branch
                        Handler.java
  Log:
  Deliver compilation errors from compiler to browser
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.3   +3 -1      
xml-cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java
  
  Index: ServerPagesGenerator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java,v
  retrieving revision 1.7.2.2
  retrieving revision 1.7.2.3
  diff -u -r1.7.2.2 -r1.7.2.3
  --- ServerPagesGenerator.java 2001/06/12 20:03:45     1.7.2.2
  +++ ServerPagesGenerator.java 2001/07/02 20:54:16     1.7.2.3
  @@ -48,7 +48,7 @@
    * delegating actual SAX event generation.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Ricardo Rocha</a>
  - * @version CVS $Revision: 1.7.2.2 $ $Date: 2001/06/12 20:03:45 $
  + * @version CVS $Revision: 1.7.2.3 $ $Date: 2001/07/02 20:54:16 $
    */
   public class ServerPagesGenerator
     extends ServletGenerator
  @@ -152,6 +152,8 @@
       try {
         generator = (XSPGenerator)
           programGenerator.load(this.manager, super.source, this.markupLanguage, 
this.programmingLanguage, this.resolver);
  +    } catch (ProcessingException e) {
  +      throw e;
       } catch (Exception e) {
         getLogger().warn("ServerPagesGenerator.generate()", e);
         throw new ResourceNotFoundException(e.getMessage(), e);
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.6   +5 -2      xml-cocoon2/src/org/apache/cocoon/sitemap/Handler.java
  
  Index: Handler.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/sitemap/Handler.java,v
  retrieving revision 1.9.2.5
  retrieving revision 1.9.2.6
  diff -u -r1.9.2.5 -r1.9.2.6
  --- Handler.java      2001/06/28 09:58:21     1.9.2.5
  +++ Handler.java      2001/07/02 20:54:18     1.9.2.6
  @@ -39,7 +39,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Carsten Ziegeler</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Giacomo Pati</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.9.2.5 $ $Date: 2001/06/28 09:58:21 $
  + * @version CVS $Revision: 1.9.2.6 $ $Date: 2001/07/02 20:54:18 $
    */
   public class Handler extends AbstractLoggable implements Runnable, Configurable, 
Composable,
       Contextualizable, Processor, Disposable {
  @@ -246,7 +246,10 @@
   
           public void throwEventualException() throws Exception {
               if (this.exception != null) {
  -                throw new ProcessingException("Exception in Handler", 
this.exception);
  +                if(this.exception instanceof ProcessingException)
  +                    throw this.exception;
  +                else
  +                    throw new ProcessingException("Exception in Handler", 
this.exception);
               }
           }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to