You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/08/30 19:32:26 UTC

git commit: Applying the patch from https://reviews.apache.org/r/5871/

Updated Branches:
  refs/heads/master 3429c55e5 -> 7272b8d56


Applying the patch from https://reviews.apache.org/r/5871/

Original committer: Venkata Siva Vijayendra Bhamidipati


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

Branch: refs/heads/master
Commit: 7272b8d56b4f4462d464fea2975ca3b21b9c1e50
Parents: 3429c55
Author: Alena Prokharchyk <al...@citrix.com>
Authored: Thu Aug 30 10:18:31 2012 -0700
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Thu Aug 30 10:33:07 2012 -0700

----------------------------------------------------------------------
 .../com/cloud/api/response/ExceptionResponse.java  |   43 +++++++++------
 1 files changed, 25 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7272b8d5/api/src/com/cloud/api/response/ExceptionResponse.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/api/response/ExceptionResponse.java b/api/src/com/cloud/api/response/ExceptionResponse.java
index 8d1e3de..9ff2cf1 100644
--- a/api/src/com/cloud/api/response/ExceptionResponse.java
+++ b/api/src/com/cloud/api/response/ExceptionResponse.java
@@ -16,15 +16,17 @@
 // under the License.
 package com.cloud.api.response;
 
-import com.cloud.utils.IdentityProxy;
+import java.util.ArrayList;
+
 import com.cloud.serializer.Param;
+import com.cloud.utils.IdentityProxy;
 import com.google.gson.annotations.SerializedName;
-import java.util.ArrayList;
 
 public class ExceptionResponse extends BaseResponse {
-	@SerializedName("uuidList") @Param(description="List of uuids associated with this error")
-	private ArrayList<IdentityProxy> idList = new ArrayList<IdentityProxy>();
-	
+
+    @SerializedName("uuidList") @Param(description="List of uuids associated with this error")
+    private ArrayList<IdentityProxy> idList = new ArrayList<IdentityProxy>();
+
     @SerializedName("errorcode") @Param(description="numeric code associated with this error")
     private Integer errorCode;
 
@@ -49,17 +51,22 @@ public class ExceptionResponse extends BaseResponse {
     public void setErrorText(String errorText) {
         this.errorText = errorText;
     }
-	
-	public void addProxyObject(String tableName, Long id, String idFieldName) {
-		idList.add(new IdentityProxy(tableName, id, idFieldName));
-		return;
-	}
-	
-	public ArrayList<IdentityProxy> getIdProxyList() {
-		return idList;
-	}
-	
-	public void setCSErrorCode(int cserrcode) {
-		this.csErrorCode = cserrcode;
-	}
+
+    public void addProxyObject(String tableName, Long id, String idFieldName) {
+        idList.add(new IdentityProxy(tableName, id, idFieldName));
+        return;
+    }
+
+    public ArrayList<IdentityProxy> getIdProxyList() {
+        return idList;
+    }
+
+    public void setCSErrorCode(int cserrcode) {
+        this.csErrorCode = cserrcode;
+    }
+
+    @Override
+    public String toString() {
+        return ("Error Code: " + errorCode + " Error text: " + errorText);
+    }
 }