Preserve the stack trace with throw, not throw exRethrow the current exception with throw; so the original failure location remains visible.