Don't catch Throwable:s - these may be
Exceptions or Errors, and catching Errors
(like OutOfMemoryError) may bring unwanted
side effects, making your application unstable.
E.g. see this rule in the PMD static code analyzer.
For the record, it's not dangerous in this place, as we immediately wrap + rethrow.
But it looks really unprofessional.
Don't catch Throwable:s - these may be Exceptions or Errors, and catching Errors (like OutOfMemoryError) may bring unwanted side effects, making your application unstable.
E.g. see this rule in the PMD static code analyzer.
For the record, it's not dangerous in this place, as we immediately wrap + rethrow.
But it looks really unprofessional.