You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mi...@apache.org on 2013/02/25 07:06:05 UTC
git commit: refs/heads/master - CloudStack-1371 : In case of
ResourceAllocationException, server is not returnig any response.
Updated Branches:
refs/heads/master a32c6d5c9 -> a4398af35
CloudStack-1371 : In case of ResourceAllocationException, server is not returnig any response.
Signed-off-by: Mice Xia <mi...@tcloudcomputing.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/a4398af3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/a4398af3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/a4398af3
Branch: refs/heads/master
Commit: a4398af3538ad586e59c1a7f8e978065876d65ee
Parents: a32c6d5
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Fri Feb 22 14:32:32 2013 +0530
Committer: Mice Xia <mi...@tcloudcomputing.com>
Committed: Mon Feb 25 14:05:33 2013 +0800
----------------------------------------------------------------------
.../apache/cloudstack/api/ServerApiException.java | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a4398af3/api/src/org/apache/cloudstack/api/ServerApiException.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/ServerApiException.java b/api/src/org/apache/cloudstack/api/ServerApiException.java
index 682e5b7..4b0fae5 100644
--- a/api/src/org/apache/cloudstack/api/ServerApiException.java
+++ b/api/src/org/apache/cloudstack/api/ServerApiException.java
@@ -43,7 +43,7 @@ public class ServerApiException extends CloudRuntimeException {
super(description, cause);
_errorCode = errorCode;
_description = description;
- if (cause instanceof CloudRuntimeException || cause instanceof CloudException ) {
+ if (cause instanceof CloudRuntimeException) {
CloudRuntimeException rt = (CloudRuntimeException) cause;
ArrayList<String> idList = rt.getIdProxyList();
if (idList != null) {
@@ -52,6 +52,15 @@ public class ServerApiException extends CloudRuntimeException {
}
}
setCSErrorCode(rt.getCSErrorCode());
+ } else if (cause instanceof CloudException) {
+ CloudException rt = (CloudException) cause;
+ ArrayList<String> idList = rt.getIdProxyList();
+ if (idList != null) {
+ for (int i = 0; i < idList.size(); i++) {
+ addProxyObject(idList.get(i));
+ }
+ }
+ setCSErrorCode(rt.getCSErrorCode());
}
}