Viktor Klang wrote: > final class Utils > { > public final static RuntimeException woBoilerplate(Exception e) > { > return (e instanceof RuntimeException) ? (RuntimeException)e : > new RuntimeException(e); > } > } > > For me, similar to Victor and Andreas, with the exception that part of my rethrown are checked exceptions ;-)
-- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroups.com To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---