the risk and fragility of string comparisons for exception handling.
Even in Java, it's still "string compare". It's done at compile-time rather than run-time, which is good. But it is still string compare.
But Exception::Class does not give you that advantage.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.