Created
November 29, 2017 11:49
Revisions
-
engr-erum created this gist
Nov 29, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ public static FailureResponse getErrorMessage(String responseString) { Log.d(Utils.class.getName(),"responseString:"+responseString); JsonParser parser = new JsonParser(); JsonElement mJson = null; mJson = parser.parse(responseString); Gson gson = new Gson(); FailureResponse failureResponse = gson.fromJson(mJson, FailureResponse.class); return failureResponse; } public class FailureResponse { private String[] non_errors; public String[] getNon_errors() { return non_errors; } public void setNon_errors(String[] non_errors) { this.non_errors = non_errors; } }