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