Use more accurate variable name
minor #10407 [Security] Use more accurate variable name (lyrixx)

This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #10407).

Discussion
----------

[Security] Use more accurate variable name

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Sorry for the noise, but everytime I open this class, I wonder what is `$exception`.

Commits
-------

f34e716 [Security] Use more accurate variable name