code: public void printStackTrace() {
          if (detail == null) {
              super.printStackTrace();
          } else {
              synchronized(System.err) {
                  System.err.println(super.getMessage() + "; nested exception is:");
                  detail.printStackTrace();
              }
          }
      }
docs: NOTE: code that prints this and detail is difficult in J2ME