Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Exceptions {
- public static void rethrow (Exception e) {
- Exceptions.<RuntimeException>hide(e);
- }
- private static <T extends Exception> void hide (Exception e) throws T {
- throw (T) e;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment