From 8b533b7ca9c315349edf329d2b8aa931548fe792 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 29 Jun 2016 11:09:35 -0700 Subject: [PATCH] Internal: Deprecate ExceptionsHelper.detailedMessage This is a trappy "helper" and only hurts. See #19069 --- .../src/main/java/org/elasticsearch/ExceptionsHelper.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/main/java/org/elasticsearch/ExceptionsHelper.java b/core/src/main/java/org/elasticsearch/ExceptionsHelper.java index 3842ab4e3bf..5996856cda0 100644 --- a/core/src/main/java/org/elasticsearch/ExceptionsHelper.java +++ b/core/src/main/java/org/elasticsearch/ExceptionsHelper.java @@ -89,10 +89,18 @@ public final class ExceptionsHelper { return result; } + /** + * @deprecated Don't swallow exceptions, allow them to propagate. + */ + @Deprecated public static String detailedMessage(Throwable t) { 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) { if (t == null) { return "Unknown";