Permalink
Browse files

added error message construciton handler. Might be issue with the way…

… OperationsReq.Handler deals with JSON integers in general.
  • Loading branch information...
zznate committed Mar 6, 2013
1 parent 94ed204 commit de0d2a9a60c81311fe92e4483158e3c513875652
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/org/usergrid/vx/server/operations/HandlerUtils.java
@@ -189,4 +189,10 @@ public static Long getOperationTime(JsonObject operation) {
}
return timeout;
}
+
+ public static JsonObject buildError(Integer id, String errorMessage) {
+ return new JsonObject()
+ .putString("exception", errorMessage)
+ .putNumber("exceptionId", id);
+ }
}

0 comments on commit de0d2a9

Please sign in to comment.