From: Jason D. <us...@us...> - 2002-04-04 21:29:13
|
User: user57 Date: 02/04/04 13:12:41 Modified: src/main/org/jboss/deployment/cache DeploymentCache.java Log: o Adding two new ConfigurationException sub-classes to help keep messages consistent when required attributes are missing or their values are invalid. Revision Changes Path 1.4 +4 -4 jboss-system/src/main/org/jboss/deployment/cache/DeploymentCache.java Index: DeploymentCache.java =================================================================== RCS file: /cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/cache/DeploymentCache.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- DeploymentCache.java 4 Apr 2002 20:57:58 -0000 1.3 +++ DeploymentCache.java 4 Apr 2002 21:12:40 -0000 1.4 @@ -15,7 +15,7 @@ import javax.management.MBeanServer; import org.jboss.system.ServiceMBeanSupport; -import org.jboss.system.ConfigurationException; +import org.jboss.system.MissingAttributeException; import org.jboss.deployment.Deployer; import org.jboss.deployment.DeploymentException; @@ -33,7 +33,7 @@ * * @todo clean up stale cache members * - * @version <tt>$Revision: 1.3 $</tt> + * @version <tt>$Revision: 1.4 $</tt> * @author <a href="mailto:ja...@pl...">Jason Dillon</a> */ public class DeploymentCache @@ -209,9 +209,9 @@ protected void startService() throws Exception { if (deployer == null) - throw new ConfigurationException("Missing attribute 'Deployer'"); + throw new MissingAttributeException("Deployer"); if (store == null) - throw new ConfigurationException("Missing attribute 'Store'"); + throw new MissingAttributeException("Store"); // start stale deployemnt timer/scanner/whatever } |