Thursday, October 24, 2019

java convert exception stack trace to string

StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
sw.toString();

No comments:

Post a Comment