} catch (Exception e) {
Log.error(
FrontendRestApi.class, "Exception when deserializing " + response.getText(), e);
}
}
FailureReason error = getFailureReason(response, responseData);
if (recoverer != null) {
// TODO: Instead of just terminating retry here.
// We should instead refactor the callback's onFail semantics to also take in
// "what attempts at failure handling have already been attempted" and make the
// leaves do something intelligent wrt to handling the final failure.