code: @Override
    public void printStackTrace(java.io.PrintWriter pw) {
      synchronized (pw) {
        if (detail != null) {
          detail.printStackTrace(pw);
        }
        super.printStackTrace(pw);
      }
    }
docs: Prints the composite message and the embedded stack trace to the specified print writer
  <code>pw</code>.
  
  @param pw the print writer