don't fill an exception stacktrace unless necessary