cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r387799 - /cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/AbstractCopletAdapter.java
Date Wed, 22 Mar 2006 08:42:59 GMT
Author: cziegeler
Date: Wed Mar 22 00:42:57 2006
New Revision: 387799

URL: http://svn.apache.org/viewcvs?rev=387799&view=rev
Log:
catch throwable

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/AbstractCopletAdapter.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/AbstractCopletAdapter.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/AbstractCopletAdapter.java?rev=387799&r1=387798&r2=387799&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/AbstractCopletAdapter.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/AbstractCopletAdapter.java
Wed Mar 22 00:42:57 2006
@@ -23,6 +23,7 @@
 import org.apache.avalon.framework.service.ServiceManager;
 import org.apache.avalon.framework.service.Serviceable;
 import org.apache.avalon.framework.thread.ThreadSafe;
+import org.apache.cocoon.ProcessingException;
 import org.apache.cocoon.components.thread.RunnableManager;
 import org.apache.cocoon.environment.CocoonRunnable;
 import org.apache.cocoon.portal.coplet.CopletData;
@@ -165,6 +166,9 @@
             } catch (Exception exception ) {
                 error = exception;
                 this.getLogger().warn("Unable to get content of coplet: " + coplet.getId(),
exception);
+            } catch (Throwable t ) {
+                error = new ProcessingException("Unable to get content of coplet: " + coplet.getId(),
t);
+                this.getLogger().warn("Unable to get content of coplet: " + coplet.getId(),
t);                
             }
             
             if ( read ) {



Mime
View raw message