The other day I needed (admittedly for the first time) to get a stack trace as a string. e.printStackTrace()
of course doesn't return one.
I needed to use the solution in this answer to get what I wanted.
Yes I realise you can get the stack trace elements then iterate over them yourself, and there are 3rd party libraries that can do it in one line, but why is there nothing in the standard library which does this for you and returns a string?
mobcommunity might close your question, *shrug*.) – Martin Ba Jun 01 '17 at 11:18