@Test public void testRootOf() { IOException ioException = new IOException("This is a an IO Exception..."); Throwable actual = ExceptionUtil.rootOf(ioException); String expected = "This is a an IO Exception..."; assertNotNull(actual); assertEquals(expected, actual.getMessage()); }
public static Throwable rootOf(Throwable t) { while (t.getCause() != null) t = t.getCause(); return t; }
ExceptionUtil { public static Throwable rootOf(Throwable t) { while (t.getCause() != null) t = t.getCause(); return t; } }
ExceptionUtil { public static Throwable rootOf(Throwable t) { while (t.getCause() != null) t = t.getCause(); return t; }  }
ExceptionUtil { public static Throwable rootOf(Throwable t) { while (t.getCause() != null) t = t.getCause(); return t; }  static Throwable rootOf(Throwable t); static String rootStackTrace(Throwable t); static RuntimeException smash(Throwable t); }
ExceptionUtil { public static Throwable rootOf(Throwable t) { while (t.getCause() != null) t = t.getCause(); return t; }  static Throwable rootOf(Throwable t); static String rootStackTrace(Throwable t); static RuntimeException smash(Throwable t);  }