throw new NoSuchObjectException("Invalid JobExecution, ID " + jobExecution.getId() + " not found.");
@Test public void testCreateException() throws Exception { NoSuchObjectException e = new NoSuchObjectException("Foo"); assertEquals("Foo", e.getMessage()); } }
public void updateJobExecution(JobExecution jobExecution) { Integer jobExecutionIndex = null; for (JobExecution je : jobExecutions) { if (je.getId().equals(jobExecution.getId())) { jobExecutionIndex = jobExecutions.indexOf(je); } } if (jobExecutionIndex >= 0) { jobExecutions.remove(jobExecutions.remove(jobExecutionIndex.intValue())); jobExecutions.add(jobExecutionIndex, jobExecution); } else { throw new NoSuchObjectException("JobExecution " + jobExecution.getId() + " does not exist"); } }
throw new NoSuchObjectException("JobExecution " + jobExecution.getJobInstance().getJobName() + " " + jobExecution.getId() + " not found"); throw new NoSuchObjectException("Invalid JobExecution, Document " + uri + " not found.");
throw new NoSuchObjectException("Invalid JobExecution, ID " + jobExecution.getId() + " not found.");
throw new NoSuchObjectException("Invalid JobExecution, ID " + jobExecution.getId() + " not found.");
throw new NoSuchObjectException("Invalid JobExecution, ID " + jobExecution.getId() + " not found.");
throw new NoSuchObjectException("Invalid JobExecution, ID " + jobExecution.getId() + " not found.");
throw new NoSuchObjectException("Invalid JobExecution, ID " + jobExecution.getId() + " not found.");