/** * Runs the monitor and encapsulates all errors within. * @since 1.590 */ private void doRun(@Nonnull TaskListener listener) { try { fix(listener); } catch (AbortException e) { listener.error(e.getMessage()); } catch (Throwable e) { Functions.printStackTrace(e, listener.error(getName() + " failed")); LOGGER.log(Level.WARNING, getName() + " failed", e); } } }
} catch (AbortException e) { stderr.println(""); stderr.println("ERROR: " + e.getMessage()); return 5; } catch (AccessDeniedException e) {
stderr.println("ERROR: " + e.getMessage()); return 5; } catch (AccessDeniedException e) {
return r; } catch (AbortException e) { listener.getLogger().println(e.getMessage()); listener.fatalError(Messages.AbstractProject_Aborted()); LOGGER.log(Level.FINE, "Polling "+this+" aborted",e);
"Launcher {0}'s afterDisconnect method propagated an exception when {1}'s connection was closed: {2}"); lr.setThrown(t); lr.setParameters(new Object[]{launcher, SlaveComputer.this.getName(), t.getMessage()}); logger.log(lr);
} catch( AbortException e ) {// orderly abortion. result = Result.FAILURE; listener.error(e.getMessage()); LOGGER.log(FINE, "Build "+this+" aborted",e); } catch( RunnerAbortedException e ) {// orderly abortion.
return computer.getChannel(); } catch (AbortException e) { logw.println(e.getMessage()); logw.println("Failed to establish the connection with the slave"); throw e;
return computer.getChannel(); } catch (AbortException e) { logw.println(e.getMessage()); logw.println("Failed to establish the connection with the slave"); throw e;
return computer.getChannel(); } catch (AbortException e) { logw.println(e.getMessage()); logw.println("Failed to establish the connection with the slave"); throw e;
return computer.getChannel(); } catch (AbortException e) { logw.println(e.getMessage()); logw.println("Failed to establish the connection with the slave"); throw e;
/** * Runs the monitor and encapsulates all errors within. * @since 1.590 */ private void doRun(@Nonnull TaskListener listener) { try { fix(listener); } catch (AbortException e) { listener.error(e.getMessage()); } catch (Throwable e) { Functions.printStackTrace(e, listener.error(getName() + " failed")); LOGGER.log(Level.WARNING, getName() + " failed", e); } } }
e.printStackTrace(listener.error(Messages.SSHLauncher_UnexpectedError())); } catch (AbortException e) { listener.getLogger().println(e.getMessage()); } catch (IOException e) { e.printStackTrace(listener.getLogger());
e.printStackTrace(listener.error(Messages.SSHLauncher_UnexpectedError())); } catch (AbortException e) { listener.getLogger().println(e.getMessage()); } catch (IOException e) { e.printStackTrace(listener.getLogger());
} catch (AbortException e) { stderr.println(e.getMessage()); return -1; } catch (Exception e) {
} catch (AbortException e) { stderr.println(e.getMessage()); return -1; } catch (Exception e) {
} catch (AbortException e) { stderr.println(e.getMessage()); return -1; } catch (Exception e) {
} catch (AbortException e) { stderr.println(e.getMessage()); return -1; } catch (Exception e) {
/** * Test that setUpEnvironment throws an AbortException when build does contain * a ReplicationFailedAction. * @throws IOException if test is failing * @throws InterruptedException if test is failing */ @Test public void shouldThrowAbortExceptionWheReplicationFailedActionIsFound() throws IOException, InterruptedException { when(abstractBuildMock.getAction(ReplicationFailedAction.class)).thenReturn( new ReplicationFailedAction("someReason")); try { handler.setUpEnvironment(abstractBuildMock, null, null); fail("should have raise an AbortException"); } catch (AbortException e) { assertEquals("someReason", e.getMessage()); } } }
listener.getLogger().println(e.getMessage()); build.setResult(Result.FAILURE); return true;
listener.getLogger().println(e.getMessage()); build.setResult(Result.FAILURE); return true;