https://www.baeldung.com/java-catch-throwable-bad-practice
As per the Java documentation, the Exception class “indicates conditions that a reasonable application might want to catch“.
The general rule in handling exceptions is that the try-catch block must be as specific as possible in catching exceptions. That is, a catch-all scenario must be avoided.
Catching Throwable in our case violates this general rule. To react to recoverable and irrecoverable situations separately, the calling code would have to inspect the instance of the Throwable object inside the catch block.
The better way would be to use a specific approach in handling exceptions and to avoid trying to deal with irrecoverable situations.