@Test void testGetRootCause2() { ServletException exception = new ServletException(new RuntimeException()); assertNotNull(exception.getRootCause()); assertTrue(exception.getRootCause() instanceof RuntimeException); }
public Throwable getRootCause() { return rootCause; }
ServletException extends Exception { public Throwable getRootCause() { return rootCause; } }
ServletException extends Exception { public Throwable getRootCause() { return rootCause; } ServletException();  ServletException(String message);  ServletException(String message, Throwable rootCause);  ServletException(Throwable rootCause); }
ServletException extends Exception { public Throwable getRootCause() { return rootCause; } ServletException();  ServletException(String message);  ServletException(String message, Throwable rootCause);  ServletException(Throwable rootCause); Throwable getRootCause(); }
ServletException extends Exception { public Throwable getRootCause() { return rootCause; } ServletException();  ServletException(String message);  ServletException(String message, Throwable rootCause);  ServletException(Throwable rootCause); Throwable getRootCause();  }