cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sate...@apache.org
Subject git commit: updated refs/heads/vmware-datamodel to 844a8e2
Date Thu, 23 May 2013 05:57:30 GMT
Updated Branches:
  refs/heads/vmware-datamodel 928231cd6 -> 844a8e2c9


Added specific exception classes instead of generic exception.


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

Branch: refs/heads/vmware-datamodel
Commit: 844a8e2c9a2e2add4f6b6e04a8235a9a164860b2
Parents: 928231c
Author: Sateesh Chodapuneedi <sateesh@apache.org>
Authored: Thu May 23 11:25:39 2013 +0530
Committer: Sateesh Chodapuneedi <sateesh@apache.org>
Committed: Thu May 23 11:25:39 2013 +0530

----------------------------------------------------------------------
 .../vmware/manager/VmwareManagerImpl.java          |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/844a8e2c/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
index 9956a28..3718762 100755
--- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
@@ -899,7 +899,7 @@ public class VmwareManagerImpl extends ManagerBase implements VmwareManager,
Vmw
 
     @Override
     @DB
-    public VmwareDatacenterVO addVmwareDatacenter(AddVmwareDcCmd cmd) throws Exception {
+    public VmwareDatacenterVO addVmwareDatacenter(AddVmwareDcCmd cmd) throws ResourceInUseException
{
         VmwareDatacenterVO vmwareDc = null;
         Long zoneId = cmd.getZoneId();
         String url = cmd.getUrl();
@@ -1021,7 +1021,7 @@ public class VmwareManagerImpl extends ManagerBase implements VmwareManager,
Vmw
     }
 
     @Override
-    public boolean removeVmwareDatacenter(RemoveVmwareDcCmd cmd) throws Exception {
+    public boolean removeVmwareDatacenter(RemoveVmwareDcCmd cmd) throws ResourceInUseException
{
         Long zoneId = cmd.getZoneId();
         // Validate zone
         validateZone(zoneId, "remove VMware datacenter from zone");


Mime
View raw message