Closes #26317

Comment From: jhoeller

As mentioned above, I went with a simpler approach of exposing all exception causes as provided handler method arguments.

Thanks for the PR, in any case! I've added your tests to my commit (with your author attribution).

Comment From: sbrannen

Superseded by alternative solution to #26317.