Internal: Deprecate ExceptionsHelper.detailedMessage

This is a trappy "helper" and only hurts.
See #19069
This commit is contained in:
Ryan Ernst 2016-06-29 11:09:35 -07:00
parent fc38e503e0
commit 8b533b7ca9
1 changed files with 8 additions and 0 deletions

View File

@ -89,10 +89,18 @@ public final class ExceptionsHelper {
return result; return result;
} }
/**
* @deprecated Don't swallow exceptions, allow them to propagate.
*/
@Deprecated
public static String detailedMessage(Throwable t) { public static String detailedMessage(Throwable t) {
return detailedMessage(t, false, 0); return detailedMessage(t, false, 0);
} }
/**
* @deprecated Don't swallow exceptions, allow them to propagate.
*/
@Deprecated
public static String detailedMessage(Throwable t, boolean newLines, int initialCounter) { public static String detailedMessage(Throwable t, boolean newLines, int initialCounter) {
if (t == null) { if (t == null) {
return "Unknown"; return "Unknown";