This is a pretty bad idea as this may contains a reference to all the classes in the stack trace of the Throwable which means these can never be collected and so cause a memory leak.

Related to this:
http://mail.openjdk.java.net/pipermail/nio-dev/2014-April/002616.html