Fix post merge

This commit is contained in:
Giuseppe Scorrano 2025-02-04 10:25:58 +01:00
parent 90e8ff128c
commit b5f7e12f5a

View File

@ -105,7 +105,7 @@ public class ArticoloRESTConsumer extends _BaseRESTConsumer {
articoloRESTConsumerService articoloRESTConsumerService
.findIfIsKit(mtbAart) .findIfIsKit(mtbAart)
.enqueue(new Callback<>() { .enqueue(new ManagedErrorCallback<>() {
@Override @Override
public void onResponse(@NonNull Call<ServiceRESTResponse<MtbAart>> call, @NonNull Response<ServiceRESTResponse<MtbAart>> response) { public void onResponse(@NonNull Call<ServiceRESTResponse<MtbAart>> call, @NonNull Response<ServiceRESTResponse<MtbAart>> response) {
analyzeAnswer(response, "findIfIsKit", (m) -> { analyzeAnswer(response, "findIfIsKit", (m) -> {
@ -114,8 +114,8 @@ public class ArticoloRESTConsumer extends _BaseRESTConsumer {
} }
@Override @Override
public void onFailure(@NonNull Call<ServiceRESTResponse<MtbAart>> call, Throwable t) { public void onFailure(Call<ServiceRESTResponse<MtbAart>> call, @NonNull Exception e) {
onFailed.run(new Exception(t)); onFailed.run(e);
} }
}); });
} }