You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2005/09/29 20:11:47 UTC
svn commit: r292497 - in
/cocoon/trunk/src/java/org/apache/cocoon/components/source:
CocoonSourceResolver.java SourceFactoryNotFoundException.java
Author: bloritsch
Date: Thu Sep 29 11:11:42 2005
New Revision: 292497
URL: http://svn.apache.org/viewcvs?rev=292497&view=rev
Log:
add SourceNotFoundException
Added:
cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceFactoryNotFoundException.java
Modified:
cocoon/trunk/src/java/org/apache/cocoon/components/source/CocoonSourceResolver.java
Modified: cocoon/trunk/src/java/org/apache/cocoon/components/source/CocoonSourceResolver.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/source/CocoonSourceResolver.java?rev=292497&r1=292496&r2=292497&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/source/CocoonSourceResolver.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/source/CocoonSourceResolver.java Thu Sep 29 11:11:42 2005
@@ -22,7 +22,6 @@
import java.net.URL;
import java.util.Map;
-import org.apache.avalon.framework.CascadingRuntimeException;
import org.apache.avalon.framework.activity.Disposable;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.ContextException;
@@ -263,7 +262,7 @@
factory = this.getSourceFactory(m, "*");
factory.release(source);
} catch (ProcessingException sse ) {
- throw new CascadingRuntimeException( "Unable to select source factory for " + source.getURI(), se );
+ throw new SourceFactoryNotFoundException( "Unable to select source factory for " + source.getURI(), se );
}
} finally {
m.release( factory );
Added: cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceFactoryNotFoundException.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceFactoryNotFoundException.java?rev=292497&view=auto
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceFactoryNotFoundException.java (added)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceFactoryNotFoundException.java Thu Sep 29 11:11:42 2005
@@ -0,0 +1,31 @@
+/*
+ * Copyright 1999-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.components.source;
+
+import org.apache.avalon.framework.CascadingRuntimeException;
+
+public final class SourceFactoryNotFoundException extends CascadingRuntimeException
+{
+ public SourceFactoryNotFoundException(String message)
+ {
+ super(message, null);
+ }
+
+ public SourceFactoryNotFoundException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+}