@Test public void testRethrowServiceExceptionThrowable() { Exception c1 = new Exception(); try { rethrowServiceException(c1); fail(); } catch (ServiceException e) { assertEquals(c1, e.getCause()); } ServiceException c2 = new ServiceException(); try { rethrowServiceException(c2); fail(); } catch (ServiceException e) { assertEquals(c2, e); } }
public static void rethrowServiceException(Throwable e) throws ServiceException { rethrowServiceException(e.getMessage(), e); }
ExceptionHelper { public static void rethrowServiceException(Throwable e) throws ServiceException { rethrowServiceException(e.getMessage(), e); } }
ExceptionHelper { public static void rethrowServiceException(Throwable e) throws ServiceException { rethrowServiceException(e.getMessage(), e); }  }
ExceptionHelper { public static void rethrowServiceException(Throwable e) throws ServiceException { rethrowServiceException(e.getMessage(), e); }  static void rethrowCoreException(Throwable e); static CoreException wrapCoreException(Throwable e); static void rethrowServiceException(Throwable e); static ServiceException wrapServiceException(Throwable e); static void rethrowProduceException(Throwable e); static ProduceException wrapProduceException(Throwable e); static void rethrowCoreException(String msg, Throwable e); static CoreException wrapCoreException(String msg, Throwable e); static void rethrowServiceException(String msg, Throwable e); static ServiceException wrapServiceException(String msg, Throwable e); static void rethrowProduceException(String msg, Throwable e); static ProduceException wrapProduceException(String msg, Throwable e); }
ExceptionHelper { public static void rethrowServiceException(Throwable e) throws ServiceException { rethrowServiceException(e.getMessage(), e); }  static void rethrowCoreException(Throwable e); static CoreException wrapCoreException(Throwable e); static void rethrowServiceException(Throwable e); static ServiceException wrapServiceException(Throwable e); static void rethrowProduceException(Throwable e); static ProduceException wrapProduceException(Throwable e); static void rethrowCoreException(String msg, Throwable e); static CoreException wrapCoreException(String msg, Throwable e); static void rethrowServiceException(String msg, Throwable e); static ServiceException wrapServiceException(String msg, Throwable e); static void rethrowProduceException(String msg, Throwable e); static ProduceException wrapProduceException(String msg, Throwable e);  }