dims 01/09/06 04:08:08
Modified: src/org/apache/cocoon/generation Tag: cocoon_20_branch
FileGenerator.java
Log:
I must have had decaf by mistake. rolling back my previous checkin.
Revision Changes Path
No revision
No revision
1.9.2.13 +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.9.2.12
retrieving revision 1.9.2.13
diff -u -r1.9.2.12 -r1.9.2.13
--- FileGenerator.java 2001/09/06 10:45:11 1.9.2.12
+++ FileGenerator.java 2001/09/06 11:08:08 1.9.2.13
@@ -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.9.2.12 $ $Date: 2001/09/06 10:45:11 $
+ * @version CVS $Revision: 1.9.2.13 $ $Date: 2001/09/06 11:08:08 $
*/
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]