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

@@ -197,7 +197,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
@Override
protected void onException(Bundle args, Throwable ex) {
if (ex instanceof IllegalArgumentException) {
tvNoMessages.setText(ex.getMessage());
tvNoMessages.setText(new ThrowableWrapper(ex).getSafeMessage());
tvNoMessages.setVisibility(View.VISIBLE);
} else
Log.unexpectedError(getParentFragmentManager(), ex);