Author: vgritsenko Date: Fri Apr 29 11:14:29 2005 New Revision: 165323 URL: http://svn.apache.org/viewcvs?rev=165323&view=rev Log: handle SourceException
Modified: cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java Modified: cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java?rev=165323&r1=165322&r2=165323&view=diff ============================================================================== --- cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java (original) +++ cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java Fri Apr 29 11:14:29 2005 @@ -93,9 +93,13 @@ source.toSAX(handler); } catch (SAXException e) { // Unwrap ProcessingException, IOException, and extreme cases of SAXExceptions. + // Handle SourceException. // See also handleSAXException final Exception cause = e.getException(); if (cause != null) { + if (cause instanceof SourceException) { + handle((SourceException) cause); + } if (cause instanceof ProcessingException) { throw (ProcessingException) cause; } @@ -371,6 +375,11 @@ final Exception cause = e.getException(); if (cause != null) { // Unwrap ProcessingException, IOException, and extreme cases of SAXExceptions. + // Handle SourceException. + // See also toSax(XMLizable, ContentHandler + if (cause instanceof SourceException) { + handle((SourceException) cause); + } if (cause instanceof ProcessingException) { throw (ProcessingException) cause; }