Home > OS >  Not throwing exception from a @Service's methods
Not throwing exception from a @Service's methods

Time:02-11

I have a notification service(I have control of this class).

If there is any unchecked exception, then I do not want to throw it. But instead want to log it in a specific manner.

I can directly have try catch block in each method's implementation but I am in search of some magic here

  • Related