public static java.lang.String | getStackTrace(java.lang.Throwable obj)Collect the stack trace from the exception for use by native methods
if (obj == null)
return null;
StringWriter traceBuf = new StringWriter();
PrintWriter pw = new PrintWriter(traceBuf);
obj.printStackTrace(pw);
pw.close();
return traceBuf.toString();
|