cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1381688 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
Date Thu, 06 Sep 2012 17:37:24 GMT
Author: dkulp
Date: Thu Sep  6 17:37:24 2012
New Revision: 1381688

URL: http://svn.apache.org/viewvc?rev=1381688&view=rev
Log:
More error message improvements

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java?rev=1381688&r1=1381687&r2=1381688&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java Thu Sep  6
17:37:24 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