Maybe but it would work but this is not a test, it's an interceptor being used by a test.
The test will assert it has hit this on each node, so the assertion is to verify the exception is detected (not having the exception would be an assertion failure).

I think it would make understanding the test more puzzling.