Implement Throwable.printStackTrace(PrintWriter).