code: public void printStackTrace(java.io.PrintWriter s) {
  
          if (s == null) {
              s = new java.io.PrintWriter(System.err, true);
          }
  
          try {
              String locInfo = getLocationAsString();
  
              if (null != locInfo) {
                  s.println(locInfo);
              }
  
              super.printStackTrace(s);
          } catch (Throwable e) {}
      }
docs: Print the the trace of methods from where the error
  originated.  This will trace all nested exception
  objects, as well as this object.
  @param s The writer where the dump will be sent to.