Skip to content

Commit

Permalink
catch error message when Getting Account configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelmjid-ASOUAB committed Jan 21, 2022
1 parent feff284 commit 7b778a2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ public static YCPayAccountConfig getResponse(String json) throws YCPayInvalidRes
return ycPayAccountConfig;
}

if(jsonObject.has("message") ){
if (jsonObject.has("message")) {
YCPayAccountConfig ycPayAccountConfig = new YCPayAccountConfig();
ycPayAccountConfig.setMessage(jsonObject.getString("message"));

return ycPayAccountConfig;
}

} catch (JSONException e) {
Expand Down

0 comments on commit 7b778a2

Please sign in to comment.