Wrap throwables

This commit is contained in:
M66B
2023-12-11 22:04:19 +01:00
parent 37e145a9d6
commit c4a1384232
13 changed files with 87 additions and 26 deletions

View File

@@ -189,7 +189,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
tvCondition.setText(ssb);
} catch (Throwable ex) {
tvCondition.setText(ex.getMessage());
tvCondition.setText(new ThrowableWrapper(ex).getSafeMessage());
}
try {
@@ -279,7 +279,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
}.execute(context, owner, args, "rule:folder");
}
} catch (Throwable ex) {
tvAction.setText(ex.getMessage());
tvAction.setText(new ThrowableWrapper(ex).getSafeMessage());
}
tvLastApplied.setText(rule.last_applied == null ? "-" : DF.format(rule.last_applied));