(okhttp3.Call call, okhttp3.Response rawResponse)
| 150 | call.enqueue( |
| 151 | new okhttp3.Callback() { |
| 152 | @Override |
| 153 | public void onResponse(okhttp3.Call call, okhttp3.Response rawResponse) { |
| 154 | Response<T> response; |
| 155 | try { |
| 156 | response = parseResponse(rawResponse); |
| 157 | } catch (Throwable e) { |
| 158 | throwIfFatal(e); |
| 159 | callFailure(e); |
| 160 | return; |
| 161 | } |
| 162 | |
| 163 | try { |
| 164 | callback.onResponse(OkHttpCall.this, response); |
| 165 | } catch (Throwable t) { |
| 166 | throwIfFatal(t); |
| 167 | t.printStackTrace(); // TODO this is not great |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | @Override |
| 172 | public void onFailure(okhttp3.Call call, IOException e) { |
nothing calls this directly
no test coverage detected