cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1383525 - /cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
Date Tue, 11 Sep 2012 18:39:04 GMT
Author: dkulp
Date: Tue Sep 11 18:39:03 2012
New Revision: 1383525

URL: http://svn.apache.org/viewvc?rev=1383525&view=rev
Log:
Merged revisions 1381688 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1381688 | dkulp | 2012-09-06 13:37:24 -0400 (Thu, 06 Sep 2012) | 2 lines

  More error message improvements

........

Modified:
    cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java

Modified: cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java?rev=1383525&r1=1383524&r2=1383525&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
Tue Sep 11 18:39:03 2012
@@ -20,6 +20,7 @@
 package org.apache.cxf.bus.extension;
 
 import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.logging.Logger;
@@ -216,6 +217,11 @@ public class Extension {
                     obj = con.newInstance(args);
                     return obj;                    
                 }
+            } catch (InvocationTargetException ex) {
+                throw new ExtensionException(new Message("PROBLEM_CREATING_EXTENSION_CLASS",
LOG, cls.getName()), 
+                                             ex.getCause());
+            } catch (InstantiationException ex) {
+                throw new ExtensionException(new Message("PROBLEM_CREATING_EXTENSION_CLASS",
LOG, cls.getName()), ex);
             } catch (Exception ex) {
                 //ignore
             }



Mime
View raw message