incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: refs/heads/master - CloudStack-1371 : In case of ResourceAllocationException, server is not returnig any response.
Date Mon, 25 Feb 2013 06:06:05 GMT
Updated Branches:
  refs/heads/master a32c6d5c9 -> a4398af35


CloudStack-1371 : In case of ResourceAllocationException, server is not returnig any response.

Signed-off-by: Mice Xia <mice_xia@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 <sanjay.tripathi@citrix.com>
Authored: Fri Feb 22 14:32:32 2013 +0530
Committer: Mice Xia <mice_xia@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());
         }
     }
 


Mime
View raw message