@Test public void testWrapProduceExceptionThrowable() { ProduceException cause = new ProduceException(); try { throw wrapProduceException(cause); } catch (ProduceException e) { assertEquals(cause, e); } try { throw wrapProduceException(new Exception()); } catch (ProduceException e) { assertNotNull(e.getCause()); } }
public static ProduceException wrapProduceException(Throwable e) { return wrapProduceException(e.getMessage(), e); }
ExceptionHelper { public static ProduceException wrapProduceException(Throwable e) { return wrapProduceException(e.getMessage(), e); } }
ExceptionHelper { public static ProduceException wrapProduceException(Throwable e) { return wrapProduceException(e.getMessage(), e); }  }
ExceptionHelper { public static ProduceException wrapProduceException(Throwable e) { return wrapProduceException(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 ProduceException wrapProduceException(Throwable e) { return wrapProduceException(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);  }