You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2013/09/17 16:01:28 UTC
[07/50] [abbrv] git commit: updated refs/heads/disk-cache to c3569db
add error message for ResourceAllocationException in DeployVMCmd.java
(cherry picked from commit e74d8a1d14c470baeb160bf1454636ca7dac7564)
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a7c91fea
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a7c91fea
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a7c91fea
Branch: refs/heads/disk-cache
Commit: a7c91fea674309f88add5d0f4b991900598d30c8
Parents: 58d1e6f
Author: Wei Zhou <w....@leaseweb.com>
Authored: Wed Sep 11 10:06:03 2013 +0200
Committer: Wei Zhou <w....@leaseweb.com>
Committed: Wed Sep 11 10:06:48 2013 +0200
----------------------------------------------------------------------
.../org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a7c91fea/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
index c7bc587..8a6cea7 100755
--- a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
@@ -528,6 +528,9 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
} catch (ConcurrentOperationException ex) {
s_logger.warn("Exception: ", ex);
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, ex.getMessage());
+ } catch (ResourceAllocationException ex) {
+ s_logger.warn("Exception: ", ex);
+ throw new ServerApiException(ApiErrorCode.RESOURCE_ALLOCATION_ERROR, ex.getMessage());
}
}