You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/02/07 23:47:17 UTC

svn commit: r619677 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/AggregatingSource.java

Author: andreas
Date: Thu Feb  7 14:47:15 2008
New Revision: 619677

URL: http://svn.apache.org/viewvc?rev=619677&view=rev
Log:
Throw SourceNotFoundException instead of RuntimeException in AggregatingSource.getInputStream(). Otherwise the IncludeProcessor doesn't trigger the fallback but re-throws the exception.

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/AggregatingSource.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/AggregatingSource.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/AggregatingSource.java?rev=619677&r1=619676&r2=619677&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/AggregatingSource.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/AggregatingSource.java Thu Feb  7 14:47:15 2008
@@ -114,7 +114,7 @@
 
     public InputStream getInputStream() throws IOException, SourceNotFoundException {
         if (!exists()) {
-            throw new RuntimeException(this + " does not exist!");
+            throw new SourceNotFoundException(this + " does not exist!");
         }
         return new ByteArrayInputStream(getData());
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org