I often have a situation when a method throws a checked exception so I have to write a wrapper for that method which catches the expetion and rethrow it as uncheched one. I wonder is there any helper-class in Java or in Apache libs for do the same? I'm gonna write my own implementation for that but maybe it exists already.
Asked
Active
Viewed 90 times
0
-
Have u visited : https://stackoverflow.com/questions/484794/wrapping-a-checked-exception-into-an-unchecked-exception-in-java ? – Bikramjit Rajbongshi Nov 10 '17 at 10:11
-
Related: https://stackoverflow.com/a/33937382/829571 – assylias Nov 10 '17 at 10:12
-
guys, have you read the question? It says: is there an _existing_ wrapper because I have to write my own wrapper everytime similar to those from the links you mentioned – Michel_T. Nov 10 '17 at 10:21