Revision: 9761
Author: b...@google.com
Date: Thu Feb 24 03:33:17 2011
Log: Add additional data to ServerFailure for JSON-RPC payload dialect.
Patch by: bobv
Review by: jasonhall

http://code.google.com/p/google-web-toolkit/source/detail?r=9761

Modified:
/trunk/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java

=======================================
--- /trunk/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java Wed Feb 16 05:36:53 2011 +++ /trunk/user/src/com/google/gwt/requestfactory/shared/impl/AbstractRequestContext.java Thu Feb 24 03:33:17 2011
@@ -151,7 +151,8 @@
       if (!raw.isNull("error")) {
         Splittable error = raw.get("error");
         ServerFailure failure = new ServerFailure(
-            error.get("message").asString());
+          error.get("message").asString(),
+          error.get("code").asString(), payload, true);
         fail(receiver, failure);
         return;
       }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to