Add stack trace to thrown exception