With Java 8 Stream API you can do something like this:
Stream
.of(throwable.getStackTrace())
.map(StackTraceElement::toString)
.collect(Collectors.joining("\n"));
It will take array of stack trace elements, convert them to string and join into multiline string.