dims        01/09/06 04:07:48

  Modified:    src/org/apache/cocoon/generation FileGenerator.java
  Log:
  I must have had decaf by mistake. rolling back my previous checkin.
  
  Revision  Changes    Path
  1.22      +6 -9      xml-cocoon2/src/org/apache/cocoon/generation/FileGenerator.java
  
  Index: FileGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/FileGenerator.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- FileGenerator.java        2001/09/06 10:44:56     1.21
  +++ FileGenerator.java        2001/09/06 11:07:48     1.22
  @@ -35,7 +35,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
    * @author <a href="mailto:[EMAIL PROTECTED]";>Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.21 $ $Date: 2001/09/06 10:44:56 $
  + * @version CVS $Revision: 1.22 $ $Date: 2001/09/06 11:07:48 $
    */
   public class FileGenerator extends ComposerGenerator
   implements Cacheable, Recyclable {
  @@ -107,14 +107,11 @@
               getLogger().debug("file resolved to " + this.inputSource.getSystemId());
   
               this.inputSource.toSAX(super.xmlConsumer);
  -        } catch (FileNotFoundException e) {
  -            getLogger().warn("Could not find resource " + 
this.inputSource.getSystemId(), e);
  -            throw new ResourceNotFoundException("Could not find resource "
  -                + this.inputSource.getSystemId(), e);
  -        } catch (IOException e) {
  -            getLogger().error("Could not read resource " + 
this.inputSource.getSystemId(), e);
  -            throw new ResourceNotFoundException("Could not read resource "
  -                + this.inputSource.getSystemId(), e);
  +        } catch (Exception e) {
  +            getLogger().error("Could not read resource "
  +                              + this.inputSource.getSystemId(), e);
  +            throw new SAXException("Could not read resource "
  +                                   + this.inputSource.getSystemId(), e);
           }
       }
   }
  
  
  

----------------------------------------------------------------------
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