Throwable wrapper

This commit is contained in:
M66B
2023-12-12 20:55:55 +01:00
parent cbcc467408
commit d56b5fa43e
29 changed files with 50 additions and 44 deletions

View File

@@ -2139,7 +2139,7 @@ public class Helper {
try {
return view.getContext().getResources().getResourceEntryName(id);
} catch (Throwable ex) {
return ex.toString();
return new ThrowableWrapper(ex).toSafeString();
}
}
@@ -2733,6 +2733,7 @@ public class Helper {
}
static void writeText(File file, String content) throws IOException {
// TODO CASA
try (FileOutputStream out = new FileOutputStream(file)) {
Log.write(out, content);
}