Repository: stratos
Updated Branches:
  refs/heads/master 69978760f -> e6133c809


Change exception thrown in addServiceGroup to InvalidServiceGroupException


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/f59cfa88
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/f59cfa88
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/f59cfa88

Branch: refs/heads/master
Commit: f59cfa880f353fc000edc3264c8dac54fab3787b
Parents: 90dc63e
Author: Lahiru Sandaruwan <[email protected]>
Authored: Fri Jun 19 17:25:57 2015 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Fri Jun 19 17:26:05 2015 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/services/impl/AutoscalerServiceImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/f59cfa88/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
index 795c812..28ba630 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
@@ -629,7 +629,7 @@ public class AutoscalerServiceImpl implements 
AutoscalerService {
         if (servicegroup == null || 
StringUtils.isEmpty(servicegroup.getName())) {
             String msg = "Cartridge group cannot be null or service name 
cannot be empty.";
             log.error(msg);
-            throw new IllegalArgumentException(msg);
+            throw new InvalidServiceGroupException(msg);
         }
 
         if (log.isInfoEnabled()) {

Reply via email to