[jboss-svn-commits] JBL Code SVN: r22981 - labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/config/digest.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Sep 22 07:15:09 EDT 2008


Author: tfennelly
Date: 2008-09-22 07:15:08 -0400 (Mon, 22 Sep 2008)
New Revision: 22981

Modified:
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/config/digest/CreateObject.java
Log:
updated exception text

Modified: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/config/digest/CreateObject.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/config/digest/CreateObject.java	2008-09-22 10:50:22 UTC (rev 22980)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/config/digest/CreateObject.java	2008-09-22 11:15:08 UTC (rev 22981)
@@ -211,7 +211,7 @@
                 final boolean wasInConfig = setFields.contains(field);
                 if (annotation.use() == Use.REQUIRED && !wasInConfig)
                 {
-                    throw new SmooksException("Configuration property '" + field.getName() + " was annotated as required but not specified in configuration file for bean: " + instance.getClass().getName());
+                    throw new SmooksException("Property '" + field.getName() + "' of class '" + instance.getClass().getName() + "' was annotated as being required.  This property was not specified in the configuration.");
                 }
                 //  set optional 'defaultVal' value if one was specified on the annotation
                 else if (annotation.use() == Use.OPTIONAL && !wasInConfig && !annotation.defaultVal().equals(UNASSIGNED))




More information about the jboss-svn-commits mailing list