@Test public void assertTransformWithException() { assertTrue(ExceptionUtils.transform(new Exception("Exception")).startsWith("java.lang.Exception")); }
public static String transform(final Throwable cause) { if (null == cause) { return ""; } StringWriter result = new StringWriter(); try (PrintWriter writer = new PrintWriter(result)) { cause.printStackTrace(writer); } return result.toString(); }
ExceptionUtils { public static String transform(final Throwable cause) { if (null == cause) { return ""; } StringWriter result = new StringWriter(); try (PrintWriter writer = new PrintWriter(result)) { cause.printStackTrace(writer); } return result.toString(); } }
ExceptionUtils { public static String transform(final Throwable cause) { if (null == cause) { return ""; } StringWriter result = new StringWriter(); try (PrintWriter writer = new PrintWriter(result)) { cause.printStackTrace(writer); } return result.toString(); }  }
ExceptionUtils { public static String transform(final Throwable cause) { if (null == cause) { return ""; } StringWriter result = new StringWriter(); try (PrintWriter writer = new PrintWriter(result)) { cause.printStackTrace(writer); } return result.toString(); }  static String transform(final Throwable cause); }
ExceptionUtils { public static String transform(final Throwable cause) { if (null == cause) { return ""; } StringWriter result = new StringWriter(); try (PrintWriter writer = new PrintWriter(result)) { cause.printStackTrace(writer); } return result.toString(); }  static String transform(final Throwable cause);  }