We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99c319b commit 781af8eCopy full SHA for 781af8e
library/src/main/java/com/queue_it/androidsdk/QueueService.java
@@ -108,7 +108,7 @@ public void run() {
108
return;
109
}
110
111
- String body = response.body().string();
+ final String body = response.body().string();
112
113
try {
114
@@ -125,7 +125,12 @@ public void run() {
125
126
});
127
} catch (JSONException e) {
128
- throw new RuntimeException(e);
+ mainHandler.post(new Runnable() {
129
+ @Override
130
+ public void run() {
131
+ _queueServiceListener.onFailure("Server did not return valid JSON: " + body, 0);
132
+ }
133
+ });
134
135
136
0 commit comments