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());
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.