Simple and quick one today - what if we need to print stack trace into a String?
JAVA:
-
...
-
e.printStackTrace(pw);
-
pw.flush();
-
-
//use the stackTraceString as you need...
-
}
-
...