Решил написать только код. Думаю по нему все понятно сразу
StringWriter writerStr = new StringWriter();
PrintWriter myPrinter = new PrintWriter(writerStr);
ex.printStackTrace(myPrinter);
String stackStr = writerStr.toString());
StringWriter writerStr = new StringWriter();
PrintWriter myPrinter = new PrintWriter(writerStr);
ex.printStackTrace(myPrinter);
String stackStr = writerStr.toString());
No comments:
Post a Comment