- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
throw new JpaStoreException(eacs.getFirstException());
throw new PersistenceException("Execution exception!", eacs.getFirstException());
throw new PersistenceException("Execution exception!", eacs.getFirstException());
public void testExceptions() { ExecutorAllCompletionService service = createService(1); service.submit(new WaitRunnable(1), null); service.submit(new ExceptionRunnable("second"), null); service.submit(new WaitRunnable(1), null); service.submit(new ExceptionRunnable("third"), null); service.waitUntilAllCompleted(); assertTrue(service.isAllCompleted()); assertTrue(service.isExceptionThrown()); assertEquals("second", findCause(service.getFirstException()).getMessage()); }