exceptions: fix typo

Closes #30821.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>