Internal: Deprecate ExceptionsHelper.detailedMessage
This is a trappy "helper" and only hurts. See #19069
This commit is contained in:
parent
fc38e503e0
commit
8b533b7ca9
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue