99100101102103104105106
void handleResponse(DynamicJso response) { try { callback.onSuccess(ApiResponse.fromData(response)); } catch (JavaScriptException e) { callback.onFailure(new HttpException("Unknown error")); } }