cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject svn commit: r292505 - /cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java
Date Thu, 29 Sep 2005 18:49:41 GMT
Author: bloritsch
Date: Thu Sep 29 11:49:39 2005
New Revision: 292505

URL: http://svn.apache.org/viewcvs?rev=292505&view=rev
Log:
use the CoreResourceNotFoundException

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java?rev=292505&r1=292504&r2=292505&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/core/container/CoreServiceManager.java Thu Sep
29 11:49:39 2005
@@ -27,7 +27,6 @@
 import java.util.Set;
 
 import org.apache.avalon.excalibur.logger.LoggerManager;
-import org.apache.avalon.framework.CascadingRuntimeException;
 import org.apache.avalon.framework.activity.Disposable;
 import org.apache.avalon.framework.activity.Initializable;
 import org.apache.avalon.framework.configuration.Configurable;
@@ -45,6 +44,7 @@
 import org.apache.cocoon.components.ComponentInfo;
 import org.apache.cocoon.configuration.ConfigurationBuilder;
 import org.apache.cocoon.core.Core;
+import org.apache.cocoon.core.CoreResourceNotFoundException;
 import org.apache.cocoon.core.Settings;
 import org.apache.cocoon.core.container.handler.AbstractComponentHandler;
 import org.apache.cocoon.core.container.handler.AliasComponentHandler;
@@ -780,7 +780,7 @@
                     this.cachedSourceResolver = (SourceResolver)this.parentManager.lookup(SourceResolver.ROLE);
                 } catch(ServiceException se) {
                     // Unlikely to happen
-                    throw new CascadingRuntimeException("Cannot get source resolver from
parent, at " + location, se);
+                    throw new CoreResourceNotFoundException("Cannot get source resolver from
parent, at " + location, se);
                 }
             } else {
                 // Create our own
@@ -789,7 +789,7 @@
                 try {
                     simpleSR.contextualize(this.context);
                 } catch (ContextException ce) {
-                    throw new CascadingRuntimeException("Cannot setup source resolver, at
" + location, ce);
+                    throw new CoreResourceNotFoundException("Cannot setup source resolver,
at " + location, ce);
                 }
                 this.cachedSourceResolver = simpleSR;
             }



Mime
View raw message