You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by sy...@apache.org on 2004/02/04 16:10:47 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/source/impl SitemapSource.java

sylvain     2004/02/04 07:10:47

  Modified:    src/java/org/apache/cocoon/components/source/impl
                        SitemapSource.java
  Log:
  Don't hide nested exceptions
  
  Revision  Changes    Path
  1.16      +2 -2      cocoon-2.1/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
  
  Index: SitemapSource.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SitemapSource.java	10 Dec 2003 15:55:08 -0000	1.15
  +++ SitemapSource.java	4 Feb 2004 15:10:47 -0000	1.16
  @@ -291,7 +291,7 @@
           }
           // VG: Why exception is not thrown in constructor?
           if (this.exception != null) {
  -            throw new IOException("SAXException: " + this.exception);
  +            throw new SourceException("Cannot get input stream for " + getURI(), this.exception);
           }
   
           if (this.redirectSource != null) {