[jboss-cvs] JBossAS SVN: r86373 - branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 25 17:46:47 EDT 2009


Author: ispringer
Date: 2009-03-25 17:46:47 -0400 (Wed, 25 Mar 2009)
New Revision: 86373

Modified:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/KernelBusRuntimeComponentDispatcher.java
Log:
add detail messages to UndeclaredThrowableExceptions in get(), set(), and invoke()


Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/KernelBusRuntimeComponentDispatcher.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/KernelBusRuntimeComponentDispatcher.java	2009-03-25 20:26:20 UTC (rev 86372)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/KernelBusRuntimeComponentDispatcher.java	2009-03-25 21:46:47 UTC (rev 86373)
@@ -21,6 +21,7 @@
  */
 package org.jboss.profileservice.management;
 
+import java.util.Arrays;
 import java.lang.reflect.UndeclaredThrowableException;
 
 import org.jboss.dependency.spi.ControllerContext;
@@ -76,7 +77,7 @@
       }
       catch (Throwable t)
       {
-         throw new UndeclaredThrowableException(t);
+         throw new UndeclaredThrowableException(t, "Failed to get property '" + propertyName + "' on component '" + componentName + "'.");
       }
    }
 
@@ -88,7 +89,7 @@
       }
       catch (Throwable t)
       {
-         throw new UndeclaredThrowableException(t);
+         throw new UndeclaredThrowableException(t, "Failed to set property '" + propertyName + "' on component '" + componentName + "' to value [" + value + "].");
       }
    }
 
@@ -100,7 +101,7 @@
       }
       catch (Throwable t)
       {
-         throw new UndeclaredThrowableException(t);
+         throw new UndeclaredThrowableException(t, "Failed to invoke method '" + methodName + "' on component '" + componentName + "' with parameters " + Arrays.asList(param) + ".");
       }
    }
 




More information about the jboss-cvs-commits mailing list