code: public String getStack() {
  		if (stackTrace == null) {
  			if (stack == null) {
  				StringWriter sw = new StringWriter(512);
  				PrintWriter pw = new PrintWriter(sw, true);
  				super.printStackTrace(pw);
  				stackTrace = sw.toString().trim();
  			} else {
  				stackTrace = stack.trim();
  			}
  		}
  		return stackTrace;
  	}
docs: --- LOCAL / REMOTE STACK TRACE ---