@Test public void printStackTrace() { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); new CompositeException(new TestException()).printStackTrace(pw); assertTrue(sw.toString().contains("TestException")); }
@Override public void printStackTrace() { printStackTrace(System.err); }
CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } }
CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } CompositeException(Throwable... exceptions);  CompositeException(Iterable<? extends Throwable> errors); }
CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } CompositeException(Throwable... exceptions);  CompositeException(Iterable<? extends Throwable> errors); List<Throwable> getExceptions(); @Override String getMessage(); @Override synchronized Throwable getCause(); @Override void printStackTrace(); @Override void printStackTrace(PrintStream s); @Override void printStackTrace(PrintWriter s); int size(); }
CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } CompositeException(Throwable... exceptions);  CompositeException(Iterable<? extends Throwable> errors); List<Throwable> getExceptions(); @Override String getMessage(); @Override synchronized Throwable getCause(); @Override void printStackTrace(); @Override void printStackTrace(PrintStream s); @Override void printStackTrace(PrintWriter s); int size();  }