ProtectionDomain in particular can throw a non-Exception. It's pretty safe to just catch Throwable here and it won't change the flow.

Comment From: snicoll

Closing this one for the same reason expressed in https://github.com/spring-projects/spring-boot/pull/14186#issuecomment-416283703

Comment From: izeye

This looks necessary to have the "theme: graal" label.