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...@locus.apache.org on 2000/11/15 14:59:46 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/generation FileGenerator.java
dims 00/11/15 05:59:45
Modified: src/org/apache/cocoon/generation Tag: xml-cocoon2
FileGenerator.java
Log:
We should not use a catch to catch all exceptions as this will stop the
error page generation.
Revision Changes Path
No revision
No revision
1.1.2.10 +7 -3 xml-cocoon/src/org/apache/cocoon/generation/Attic/FileGenerator.java
Index: FileGenerator.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/generation/Attic/FileGenerator.java,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -r1.1.2.9 -r1.1.2.10
--- FileGenerator.java 2000/11/10 22:38:54 1.1.2.9
+++ FileGenerator.java 2000/11/15 13:59:44 1.1.2.10
@@ -20,7 +20,7 @@
*
* @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
* (Apache Software Foundation, Exoffice Technologies)
- * @version CVS $Revision: 1.1.2.9 $ $Date: 2000/11/10 22:38:54 $
+ * @version CVS $Revision: 1.1.2.10 $ $Date: 2000/11/15 13:59:44 $
*/
public class FileGenerator extends ComposerGenerator implements Poolable {
@@ -36,8 +36,12 @@
parser.setContentHandler(this.contentHandler);
parser.setLexicalHandler(this.lexicalHandler);
parser.parse(super.resolver.resolveEntity(null,this.source));
- } catch (Exception e) {
+ } catch (IOException e) {
+ throw(e);
+ } catch (SAXException e) {
+ throw(e);
+ } catch (Exception e){
log.error("Could not get parser", e);
- }
+ }
}
}